Updated parser to use stripmapApp conventions for Doppler centroids (#641)
* Updated to use stripmapApp conventions for Doppler centroids * Added ROI_PAC to default Doppler method listLT1AB
parent
60a021de43
commit
725d0d8653
|
@ -220,10 +220,10 @@ class ROI_PAC(Sensor):
|
|||
Populate some extra fields.
|
||||
"""
|
||||
mdict = self.constants
|
||||
self.dopplerVsRangePixel = [ float(mdict['DOPPLER_RANGE0']),
|
||||
float(mdict['DOPPLER_RANGE1']),
|
||||
float(mdict['DOPPLER_RANGE2']),
|
||||
float(mdict['DOPPLER_RANGE3']) ]
|
||||
prf=float(mdict['PRF'])
|
||||
self.frame._dopplerVsPixel = [float(mdict['DOPPLER_RANGE0'])*prf,
|
||||
float(mdict['DOPPLER_RANGE1'])*prf,
|
||||
float(mdict['DOPPLER_RANGE2'])*prf ]
|
||||
|
||||
def extractImage(self):
|
||||
"""Extract the raw image data"""
|
||||
|
@ -236,14 +236,16 @@ class ROI_PAC(Sensor):
|
|||
"""
|
||||
Return the doppler centroid as defined in the HDF5 file.
|
||||
"""
|
||||
self._populateExtras()
|
||||
prf = float(self.constants['PRF'])
|
||||
quadratic = {}
|
||||
dopp = self.dopplerVsRangePixel
|
||||
dopp = self.frame._dopplerVsPixel
|
||||
mid = 0.5*(int(self.constants['WIDTH']) - int(self.constants['XMIN']))
|
||||
fd_mid = dopp[0] + (dopp[1] + (dopp[2] + dopp[3]*mid)*mid)*mid
|
||||
fd_mid = dopp[0] + (dopp[1] + dopp[2]*mid)*mid
|
||||
|
||||
quadratic['a'] = dopp[0]
|
||||
quadratic['b'] = dopp[1]
|
||||
quadratic['c'] = dopp[2]
|
||||
quadratic['a'] = dopp[0]/prf
|
||||
quadratic['b'] = dopp[1]/prf
|
||||
quadratic['c'] = dopp[2]/prf
|
||||
return quadratic
|
||||
|
||||
rawFile = property(getRawFile, setRawFile)
|
||||
|
|
|
@ -76,7 +76,7 @@ def getDopplerMethod(sensor):
|
|||
Return appropriate doppler method based on user input.
|
||||
'''
|
||||
|
||||
if str(sensor).lower() in ["terrasarx","cosmo_skymed_slc","radarsat2",'tandemx', 'kompsat5','risat1_slc','sentinel1', 'alos2','ers_slc','alos_slc','envisat_slc', 'uavsar_rpi','cosmo_skymed','ers_envisat_slc','sicd_rgzero', 'iceye_slc', 'uavsar_hdf5_slc', 'saocom_slc']:
|
||||
if str(sensor).lower() in ["terrasarx","cosmo_skymed_slc","radarsat2",'tandemx', 'kompsat5','risat1_slc','sentinel1', 'alos2','ers_slc','alos_slc','envisat_slc', 'uavsar_rpi','cosmo_skymed','ers_envisat_slc','sicd_rgzero', 'iceye_slc', 'uavsar_hdf5_slc', 'saocom_slc', 'roi_pac']:
|
||||
res = 'useDEFAULT'
|
||||
else:
|
||||
res = 'useDOPIQ'
|
||||
|
|
Loading…
Reference in New Issue