enforcing positive value for the index of the first valid sample in TOPS coregistered SLCs
parent
09259d3936
commit
08e4548113
|
@ -127,7 +127,7 @@ def adjustValidSampleLine(master, slave, minAz=0, maxAz=0, minRng=0, maxRng=0):
|
|||
else:
|
||||
master.numValidSamples = master.numberOfSamples - master.firstValidSample
|
||||
|
||||
|
||||
master.firstValidSample = np.max([0, master.firstValidSample])
|
||||
###Adjust valid lines and first valid line here
|
||||
print ("Adjust valid lines")
|
||||
print('Before: ', master.firstValidLine, master.numValidLines)
|
||||
|
|
|
@ -141,6 +141,8 @@ def adjustValidSampleLine_V2(master, slave, minAz=0, maxAz=0, minRng=0, maxRng=0
|
|||
else:
|
||||
master.numValidSamples = master.numberOfSamples - master.firstValidSample
|
||||
|
||||
master.firstValidSample = np.max([0, master.firstValidSample])
|
||||
|
||||
print('After: ', master.firstValidSample, master.numValidSamples)
|
||||
|
||||
###Adjust valid lines and first valid line here
|
||||
|
|
Loading…
Reference in New Issue