Read unzip Sentinel-1 SLCs (#310)

LT1AB
Bryan Marfito 2021-07-21 13:28:30 +08:00 committed by GitHub
parent 0fab300464
commit cc4dc38638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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