OrbitalEphemerisMessage

See also

Module Ephemeris Components

Module OEM Data Types

Python representation of an Orbital Ephemeris Message.

This class provides the primary interface between the OEM module and an OEM file.

oem.OrbitalEphemerisMessage.header

Object containing the OEM header section.

Type:HeaderSection

Examples

The OrbitalEphemerisMessage class can load directly from a file:

>>> ephemeris = OrbitalEphemerisMessage.from_ascii_oem(file_path)

An OEM is made up of one or more data segments available through an iterator:

>>> for segment in ephemeris:
...     for state in segment:
...         # Iterate through states
...         pass
...     for covariance in segment.covariances:
...         # Iterate through covariances
...         pass

It is also possible to iterate through the states and covariances in all segments with the .states and .covariances properties.

To determine if a particular epoch is contained in the useable time range of any of the segments in an ephemeris, use in:

>>> epoch in ephemeris
True
oem.OrbitalEphemerisMessage.covariances

Return a list of covariances in all segments.

oem.OrbitalEphemerisMessage.states

Return a list of states in all segments.