fix bug while calculating corrLooks for snaphu(_mcf)

Currently, the number of looks in azimuth direction is used twice instead of once while calculating the `corrLooks` value.

Below is the relevant document of `NCORRLOOKS` in SNPAHU:
https://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/snaphu.conf.full
LT1AB
Zhang Yunjun 2019-11-21 13:18:25 -08:00
parent 52d96c0d95
commit 6e4fcadce8
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class snaphu(Component):
self.azimuthLooks = obj.insar.topo.numberAzimuthLooks
azres = obj.insar.masterFrame.platform.antennaLength/2.0
azfact = obj.insar.topo.numberAzimuthLooks *azres / obj.insar.topo.azimuthSpacing
azfact = azres / obj.insar.topo.azimuthSpacing
rBW = obj.insar.masterFrame.instrument.pulseLength * obj.insar.masterFrame.instrument.chirpSlope
rgres = abs(SPEED_OF_LIGHT / (2.0 * rBW))

View File

@ -54,7 +54,7 @@ class snaphu_mcf(Component):
self.azimuthLooks = obj.insar.topo.numberAzimuthLooks
azres = obj.insar.masterFrame.platform.antennaLength/2.0
azfact = obj.insar.topo.numberAzimuthLooks *azres / obj.insar.topo.azimuthSpacing
azfact = azres / obj.insar.topo.azimuthSpacing
rBW = obj.insar.masterFrame.instrument.pulseLength * obj.insar.masterFrame.instrument.chirpSlope
rgres = abs(SPEED_OF_LIGHT / (2.0 * rBW))