From 9a947b3d14d92a893eb7c4f81f9c05125343e467 Mon Sep 17 00:00:00 2001 From: Eric Jameson Fielding Date: Sun, 5 May 2019 23:39:11 -0700 Subject: [PATCH] more changes to support segments of UAVSAR stack --- contrib/stack/stripmapStack/prepareUAVSAR_coregStack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/stack/stripmapStack/prepareUAVSAR_coregStack.py b/contrib/stack/stripmapStack/prepareUAVSAR_coregStack.py index 91571b8..f42c3b4 100755 --- a/contrib/stack/stripmapStack/prepareUAVSAR_coregStack.py +++ b/contrib/stack/stripmapStack/prepareUAVSAR_coregStack.py @@ -67,11 +67,11 @@ def main(iargs=None): outputDir = os.path.abspath(inps.output) ####################################### - slc_files = glob.glob(os.path.join(inps.input, '*_s'+segment+'_1x1.slc')) + slc_files = glob.glob(os.path.join(inps.input, '*_s'+inps.segment+'_1x1.slc')) for file in slc_files: imgDate = get_Date(file) print (imgDate) - annFile = file.replace('_s'+segment+'_1x1.slc','')+'.ann' + annFile = file.replace('_s'+inps.segment+'_1x1.slc','')+'.ann' print (annFile) imgDir = os.path.join(outputDir,imgDate) if not os.path.exists(imgDir):