From ef29fecb92a0fd8629d94251f7e58ac71fc9dba4 Mon Sep 17 00:00:00 2001 From: Bryan Marfito Date: Fri, 28 May 2021 09:33:52 +0800 Subject: [PATCH] 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 --- contrib/stack/alosStack/create_cmds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/stack/alosStack/create_cmds.py b/contrib/stack/alosStack/create_cmds.py index 6ef5240..faacab6 100755 --- a/contrib/stack/alosStack/create_cmds.py +++ b/contrib/stack/alosStack/create_cmds.py @@ -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