From 5bc4cd64667e0d437c6189f5b697b028b5483012 Mon Sep 17 00:00:00 2001 From: CunrenLiang <56097947+CunrenLiang@users.noreply.github.com> Date: Sat, 6 Jun 2020 00:12:54 -0700 Subject: [PATCH] fix bug in baseline computation --- components/isceobj/Alos2burstProc/runPreprocessor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/isceobj/Alos2burstProc/runPreprocessor.py b/components/isceobj/Alos2burstProc/runPreprocessor.py index c971810..d71cacb 100644 --- a/components/isceobj/Alos2burstProc/runPreprocessor.py +++ b/components/isceobj/Alos2burstProc/runPreprocessor.py @@ -417,6 +417,10 @@ def runPreprocessor(self): mvel = np.array(masterSV.getVelocity()) sxyz = np.array(slaveSV.getPosition()) + #to fix abrupt change near zero in baseline grid. JUN-05-2020 + mvelunit = mvel / np.linalg.norm(mvel) + sxyz = sxyz - np.dot ( sxyz-mxyz, mvelunit) * mvelunit + aa = np.linalg.norm(sxyz-mxyz) costheta = (x[1]*x[1] + aa*aa - slvrng*slvrng)/(2.*x[1]*aa)