Hello dear Orekit team,
I recently faced a misunderstanding while reading a TLE. I wanted to get the sma using orekit but it gave me a wrong answer.
Here is the Orekit code :
tle_obj = TLE(tle[0], tle[1])
propagator = TLEPropagator.selectExtrapolator(tle_obj)
orbit = propagator.getInitialState().getOrbit()
sma = orbit.getA() / 1000
And here is the home made code delivering the right answer :
mu = 398600.4418 # km^3/s^2
line2 = tle[1].split()
n_rev_day = float(line2[7])
n = n_rev_day * 2*np.pi / 86400 # rad/s
sma = (mu / n**2)**(1/3)
Could you tell me why both don’t give the same results ?
(i’m in Orekit 13 by the way)
Thanks a lot
Augustin