adam_core.orbits.oem_io module

adam_core.orbits.oem_io.orbit_to_oem(orbits: Orbits, output_file: str, originator: str = 'ADAM CORE USER') str[source]

Convert Orbit object to an OEM file.

This function converts the state vectors and epoch from an Orbit object into the OEM format.

Parameters:
  • orbit (Orbit) – The Orbit object to convert, must be pre-propagated to the desired times.

  • output_file (str) – Path to the output OEM file

Returns:

Path to the output OEM file

Return type:

str

adam_core.orbits.oem_io.orbit_to_oem_propagated(orbits: Orbits, output_file: str, times: Timestamp, propagator_klass: Type[Propagator], originator: str = 'ADAM CORE USER') str[source]

Convert Orbit object to an OEM file.

This function converts the state vectors and epoch from an Orbit object into the OEM format.

Parameters:
  • orbit (Orbit) – The Orbit object to convert

  • output_file (str) – Path to the output OEM file

Returns:

Path to the output OEM file

Return type:

str

adam_core.orbits.oem_io.orbit_from_oem(input_file: str) Orbits[source]

Convert an OEM file to an Orbit object.

This function reads an OEM file and converts the state vectors and epoch into an Orbit object. Each state in the oem file is converted to an Orbit row. Covariances are only supported if the covariance epoch matches the state epoch.

Parameters:

input_file (str) – Path to the input OEM file

Returns:

The Orbit object

Return type:

Orbit