Fix Date Parsing Bug

Previously if the directory of the downloaded files had an underscore the date would incorrectly parsed.
LT1AB
Zachary Keskinen 2022-06-19 17:41:10 -06:00 committed by GitHub
parent 31bb73ba95
commit 018f2ad842
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ def main(iargs=None):
#######################################
slc_files = glob.glob(os.path.join(inps.input, '*_s'+inps.segment+'_1x1.slc'))
for file in slc_files:
imgDate = get_Date(file)
imgDate = get_Date(os.path.basename(file))
print (imgDate)
annFile = file.replace('_s'+inps.segment+'_1x1.slc','')+'.ann'
print (annFile)