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
Zhang Yunjun 2019-03-24 12:57:26 -04:00
parent b062a6a150
commit b728e603e3
2 changed files with 11 additions and 1 deletions

View File

@ -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:

View File

@ -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