stackStripMap: raise exception for ionosphere workflow if --fbd2fbs detected
stackStripMap: check fbd2fbs setting for ALOS-1 data if ionosphere workflow is chosen, and raise Error. prepRawALOS: sort files in run_unPack script.LT1AB
parent
b062a6a150
commit
b728e603e3
|
@ -192,7 +192,7 @@ def main(iargs=None):
|
||||||
|
|
||||||
|
|
||||||
# now generate the unpacking script for all the date dirs
|
# now generate the unpacking script for all the date dirs
|
||||||
dateDirs = glob.glob(os.path.join(inps.inputDir,'2*'))
|
dateDirs = sorted(glob.glob(os.path.join(inps.inputDir,'2*')))
|
||||||
if inps.outputDir is not None:
|
if inps.outputDir is not None:
|
||||||
f = open(run_unPack,'w')
|
f = open(run_unPack,'w')
|
||||||
for dataDir in dateDirs:
|
for dataDir in dateDirs:
|
||||||
|
|
|
@ -238,6 +238,16 @@ def interferogramStack(inps, acquisitionDates, stackMasterDate, slaveDates, pair
|
||||||
|
|
||||||
def interferogramIonoStack(inps, acquisitionDates, stackMasterDate, slaveDates, pairs):
|
def interferogramIonoStack(inps, acquisitionDates, stackMasterDate, slaveDates, pairs):
|
||||||
|
|
||||||
|
# raise exception for ALOS-1 if --fbd2fbs was used
|
||||||
|
run_unpack_file = os.path.join(inps.workDir, 'run_unPackALOS')
|
||||||
|
if os.path.isfile(run_unpack_file):
|
||||||
|
with open(run_unpack_file, 'r') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
if any('fbd2fbs' in line for line in lines):
|
||||||
|
msg = 'ALOS-1 FBD mode data exists with fbd2fbs enabled, which is not applicable for ionosphere workflow'
|
||||||
|
msg += '\nsolution: restart from prepRawALOS.py WITHOUT --dual2single/--fbd2fbs option.'
|
||||||
|
raise ValueError(msg)
|
||||||
|
|
||||||
# an interferogram stack with ionosphere correction.
|
# an interferogram stack with ionosphere correction.
|
||||||
# coregistration is with geometry + const offset + rubbersheeting
|
# coregistration is with geometry + const offset + rubbersheeting
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue