Proposed fix on a bug in create_cmds.py (#291)

I'm proposing a fix to create_cmds.py since I found a minor bug in line 165 which doesn't remove the excluded dates during image stacking. Instead line 165 removes dates based on the dates not included from the dates to be included parameter on the alosStack.xml.

The image folder contains the ALOS-2 images with dates 191005, 191019, 191102, 191214, 191228.

I've tested the changes and it worked properly.

Co-authored-by: Ryan Burns <rtburns@jpl.nasa.gov>
LT1AB
Bryan Marfito 2021-05-28 09:33:52 +08:00 committed by GitHub
parent bbf8cb55ae
commit ef29fecb92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ def formPairs(idir, numberOfSubsequentDates, pairTimeSpanMinimum=None, pairTimeS
for pair in pairsProcess:
rdate = pair.split('-')[0]
sdate = pair.split('-')[1]
if (rdate not in datesIncluded) and (sdate not in datesIncluded):
if (rdate not in datesExcluded) and (sdate not in datesExcluded):
pairsProcess2.append(pair)
pairsProcess = pairsProcess2