Skip to content

Commit cdf6413

Browse files
authored
Merge pull request #92 from inuex35/fix/eph2pos-velocity
Fix satellite velocity in eph2pos: h2d derives from h2, not h
2 parents 5e0cfb3 + 0f87154 commit cdf6413

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/cssrlib/ephemeris.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def eph2pos(t: gtime_t, eph: Eph, flg_v=False):
214214
qq = np.array([si*sOmg, -si*cOmg, ci])
215215
Ed = n/nue
216216
nud = np.sqrt(1.0-eph.e**2)/nue*Ed
217-
h2d = 2.0*nud*np.array([-h[1], h[0]])
217+
h2d = 2.0*nud*np.array([-h2[1], h2[0]])
218218
ud = nud+np.array([eph.cuc, eph.cus])@h2d
219219
rd = Ak*eph.e*sE*Ed+np.array([eph.crc, eph.crs])@h2d
220220

0 commit comments

Comments
 (0)