Working with Data
Each OEM is made up of one or more segments of state and optional covariance data. The OrbitEphemerisMessage
class provides iterables for both.
Epochs are represented as astropy.time.Time
objects if the time system is supported by astropy
or datetime
otherwise. Positions, velocities, and accelerations are numpy
arrays.
Address specific segments through the .segments
attribute
Both the ephemeris and segment objects support interpolation of states. If the requested epoch is not within the useable date range specified in the OEM file headers, this action will raise an exception.
For easy iterative sampling with fixed step sizes, use the .steps
method. The sampled states will span from the useable start time to the useable end time of the ephemeris, stepping according to the provided step_size
in seconds. Individual segments also support the .steps
method.
It is also possible to retrieve a complete list of states and covariances through the .states
and .covariances
properties.
To read OEM metadata, access the .header
attribute. The header acts as a dictionary and supports basic getting and setting operations. Similarly, segments expose metadata through the .metadata
attribute. Both headers and metadata support the standard items
attribute.
Last updated