Getting a BoundedPropagator from an OEM file

Hello everybody,

I’m quite experienced with the Orekit library but not quite familiar with its usage from a python environment so I apologize if my question is really a “noob” one for you…

I have an OEM file that I want to parse and build a BoundedPropagator from it.
In Java, it’s straightforward from the OemParser to get the BoundedPropagator but with the Python wrapper, I didn’t find a correct way to get this BoundedPropagator.

In fact, I want to access the getPropagator() method that should be available from the EphemerisFile interface of the OEM class (after extracting the correct SatelliteEphemeris from the map obtained by getSatellites())

From the Oem object, I tried with different “cast_” but never been able to make it work…
If someone could explain me the correct way to go from the Oem object to the BoundedPropagator, it would be fantastic! :wink:

Thank you!

Ok… I finally found how to do it. It was quite simple in fact but I wasn’t casting to the correct SatelliteEphemeris class.

oem = oem_parser.parse(oem_f)
ephemFile = EphemerisFile.cast_(oem)
satellite = EphemerisFile.SatelliteEphemeris.cast_(ephemFile.getSatellites().get("SATID"))
propagator = satellite.getPropagator()
2 Likes