Skip to content

Commit

Permalink
adapt scenename handling for SLC data (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
griembauer committed Mar 5, 2021
1 parent f7d356e commit 0df9d40
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ def scenename_split(scenename):
date_string = name_split[2].split('T')[0]
elif name_split[0].startswith('S1'):
producttype = name_split[2][:3]
date_string = name_split[4].split('T')[0]
if producttype == 'SLC':
date_string = name_split[5].split('T')[0]
else:
date_string = name_split[4].split('T')[0]

else:
grass.fatal(_(
"Sensor {} is not supported yet").format(name_split[0]))
Expand Down

0 comments on commit 0df9d40

Please sign in to comment.