From cc4dc386384e82479d8650816439c11a0aae7bba Mon Sep 17 00:00:00 2001 From: Bryan Marfito Date: Wed, 21 Jul 2021 13:28:30 +0800 Subject: [PATCH] Read unzip Sentinel-1 SLCs (#310) --- contrib/stack/topsStack/stackSentinel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/stack/topsStack/stackSentinel.py b/contrib/stack/topsStack/stackSentinel.py index b3885ce..393f483 100755 --- a/contrib/stack/topsStack/stackSentinel.py +++ b/contrib/stack/topsStack/stackSentinel.py @@ -236,6 +236,8 @@ def get_dates(inps): else: SAFE_files = glob.glob(os.path.join(inps.slc_dirname,'S1*_IW_SLC*zip')) # changed to zip file by Minyan Zhong + if SAFE_files == []: + SAFE_files = glob.glob(os.path.join(inps.slc_dirname,'S1*_IW_SLC*SAFE')) if len(SAFE_files) == 0: raise Exception('No SAFE file found')