From 3aa234c515eceb96d6ebe6991c271c6ab1e2dd30 Mon Sep 17 00:00:00 2001 From: CunrenLiang <56097947+CunrenLiang@users.noreply.github.com> Date: Mon, 3 Aug 2020 14:36:33 -0700 Subject: [PATCH] fix TerraSAR-X parameter bugs fixed bugs in getting range bandwidth, chirp slope, pulse duration and range sampling frequency --- components/isceobj/Sensor/TerraSARX.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/components/isceobj/Sensor/TerraSARX.py b/components/isceobj/Sensor/TerraSARX.py index f67a9c0..075b50b 100755 --- a/components/isceobj/Sensor/TerraSARX.py +++ b/components/isceobj/Sensor/TerraSARX.py @@ -171,8 +171,23 @@ class TerraSARX(Sensor): instrument.setIncidenceAngle(incidenceAngle) instrument.setPulseRepetitionFrequency(prf) instrument.setRangePixelSize(rangePixelSize) + + + #Cunren Liang, 2015 + #the chirp bandwidth extracted before is definetely wrong + #I re-extract it here. + rangeSamplingFrequency = float(self.grab_from_xml('instrument/settings/RSF')) + chirpPulseBandwidth = float(self.grab_from_xml('instrument/settings/rxBandwidth')) + # this is not a correct value, TSX product does not provide pulse length + rangePulseLength = 1 + #print("\n\n\n\n\n\n\n\n{0}\n\n\n\n\n\n\n\n\n".format(rangeSamplingFrequency)) + #print("\n\n\n\n\n\n\n\n{0}\n\n\n\n\n\n\n\n\n".format(chirpPulseBandwidth)) + + #jng no sampling rate extracted before. - instrument.setRangeSamplingRate(1/rowSpacing) + #instrument.setRangeSamplingRate(1/rowSpacing) + #the upper setting should be wrong, I change it. Cunren Liang, 2015 + instrument.setRangeSamplingRate(rangeSamplingFrequency) instrument.setPulseLength(rangePulseLength) instrument.setChirpSlope(chirpPulseBandwidth/rangePulseLength) #instrument.setRangeBias(0)