Hi @astroboy
Welcome to the Orekit forum!
Your code is good.
As explained in the topic below, TLE parameters are significant only with respect to the TLE propagation model (i.e., SGP4 model represented by the TLEPropagator
class of Orekit)
We can’t directly use the keplerian elements contained in the TLE. In other words, the keplerian elements printed by
print(tle_line_1)
print(tle_line_2)
are not the good ones. The correct ones are those calculated by
tle_propagator = TLEPropagator.selectExtrapolator(tle_object)
tle_orbit_cart = tle_propagator.getInitialState().getOrbit()
tle_orbit_kep = OrbitType.KEPLERIAN.convertType(tle_orbit_cart)
The JavaDoc of the TLE class explains this particularity.
Best regards,
Bryan