Skip to content

Commit

Permalink
Fix tracknumber for S1B
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushrpt committed Mar 31, 2020
1 parent ed30cba commit 50816f8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/isceobj/Sensor/TOPS/Sentinel1.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,14 @@ def populateCommonMetadata(self):
burst.numberOfSamples = samples
burst.numberOfLines = lines
burst.startingRange = startingRange
burst.trackNumber = (orbitnumber-73)%175 + 1 ###Appears to be standard for S1A

if mission == 'S1A':
burst.trackNumber = (orbitnumber-73)%175 + 1
elif mission == 'S1B':
burst.trackNumber = (orbitnumber-27)%175 + 1
else:
raise ValueError('Encountered unknown mission id {0}'.format(mission))

burst.orbitNumber = orbitnumber
burst.frameNumber = 1 #S1A doesnt appear to have a frame system
burst.polarization = polarization
Expand Down

0 comments on commit 50816f8

Please sign in to comment.