Merge pull request #141 from sssangha/baselinebug

Baseline bug fix for Sentinel-1
LT1AB
dbekaert 2020-06-04 06:50:11 -07:00 committed by GitHub
commit 98acd33369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,8 @@ def runComputeBaseline(self):
mxyz = np.array(masterSV.getPosition()) mxyz = np.array(masterSV.getPosition())
mvel = np.array(masterSV.getVelocity()) mvel = np.array(masterSV.getVelocity())
sxyz = np.array(slaveSV.getPosition()) sxyz = np.array(slaveSV.getPosition())
mvelunit = mvel / np.linalg.norm(mvel)
sxyz = sxyz - np.dot ( sxyz-mxyz, mvelunit) * mvelunit
aa = np.linalg.norm(sxyz-mxyz) aa = np.linalg.norm(sxyz-mxyz)
costheta = (rng*rng + aa*aa - slvrng*slvrng)/(2.*rng*aa) costheta = (rng*rng + aa*aa - slvrng*slvrng)/(2.*rng*aa)

View File

@ -103,6 +103,8 @@ class Baseline(Component):
mxyz = np.array(masterSV.getPosition()) mxyz = np.array(masterSV.getPosition())
mvel = np.array(masterSV.getVelocity()) mvel = np.array(masterSV.getVelocity())
sxyz = np.array(slaveSV.getPosition()) sxyz = np.array(slaveSV.getPosition())
mvelunit = mvel / np.linalg.norm(mvel)
sxyz = sxyz - np.dot ( sxyz-mxyz, mvelunit) * mvelunit
aa = np.linalg.norm(sxyz-mxyz) aa = np.linalg.norm(sxyz-mxyz)