Skip to content

Commit ec4c346

Browse files
mirzaeesmirzaees
andauthored
correct for along-track shift (#681)
Co-authored-by: mirzaees <smirzaee@aurora.jpl.nasa.gov>
1 parent 4c4bb41 commit ec4c346

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dolphin/baseline.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ def compute_baselines(
147147

148148
pos_ref, velocity = orbit_ref.interpolate(az_time_ref)
149149
pos_sec, _ = orbit_sec.interpolate(az_time_sec)
150+
151+
# Accounting for along-track shift
152+
rvelunit = velocity / np.linalg.norm(velocity)
153+
pos_sec = pos_sec - np.dot(pos_sec - pos_ref, rvelunit) * rvelunit
154+
150155
b = compute(
151156
llh_rad, pos_ref, pos_sec, range_ref, range_sec, velocity, ellipsoid
152157
)

0 commit comments

Comments
 (0)