OrbitEphemerisMessage¶
Python representation of an Orbit Ephemeris Message.
This class provides the primary interface between the OEM module and an OEM file.
-
oem.OrbitEphemerisMessage.
header
¶ Object containing the OEM header section.
Type: HeaderSection
Examples
The OrbitEphemerisMessage class can load directly from a file:
>>> ephemeris = OrbitEphemerisMessage.open(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
The save_as method enables saving of copies of an OEM in both KVN and XML formats.
>>> oem.save_as("new.oem", file_format="xml")
To convert directly between KVN and XML formats, use the convert class method. For example, to convert a KVN OEM to XML:
>>> oem.convert("input.oem", "output.oem", "xml")
-
oem.OrbitEphemerisMessage.
covariances
¶ Return a list of covariances in all segments.
-
oem.OrbitEphemerisMessage.
states
¶ Return a list of states in all segments.