From 6e4fcadce863e37a997c395c21aa5b9631ba1bdd Mon Sep 17 00:00:00 2001 From: Zhang Yunjun Date: Thu, 21 Nov 2019 13:18:25 -0800 Subject: [PATCH] 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 --- components/isceobj/Unwrap/snaphu.py | 2 +- components/isceobj/Unwrap/snaphu_mcf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/isceobj/Unwrap/snaphu.py b/components/isceobj/Unwrap/snaphu.py index 88073a6..cbb51b4 100755 --- a/components/isceobj/Unwrap/snaphu.py +++ b/components/isceobj/Unwrap/snaphu.py @@ -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)) diff --git a/components/isceobj/Unwrap/snaphu_mcf.py b/components/isceobj/Unwrap/snaphu_mcf.py index 0705d8a..f6cd5fd 100755 --- a/components/isceobj/Unwrap/snaphu_mcf.py +++ b/components/isceobj/Unwrap/snaphu_mcf.py @@ -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))