Ephemeris Components¶
EphemerisSegment¶
-
class
oem.components.
EphemerisSegment
(metadata, state_data, covariance_data=None, version='2.0')¶ Bases:
object
OEM ephemeris segment.
Container for a single OEM ephemeris segment.
-
covariances
¶ Return list of Covariances in this segment.
-
classmethod
from_strings
(components, version='2.0')¶ Create EphemerisSegment from OEM segment strings.
Parameters: components (tuple) – Tuple of OEM-formatted strings containing metadata, ephemeris data, and an optional covariance section. Returns: New EphemerisSegment instance. Return type: new_section (EphemerisSegment)
-
has_accel
¶ Evaluate if segment contains acceleration data.
-
has_covariance
¶ Evaluate if segment contains covariance data.
-
states
¶ Return list of States in this segment.
-
useable_start_time
¶ Return epoch of start of useable state data range
-
useable_stop_time
¶ Return epoch of end of useable state data range
-
HeaderSection¶
-
class
oem.components.
HeaderSection
(fields)¶ Bases:
oem.base.KeyValueSection
OEM header section.
Container for a single OEM header section.
Examples
This class behaves similar to a dict allowing membership checks, iteration over keys, and value set/get.
>>> "CCSDS_OEM_VERS" in header: True
>>> keys = [key for key in header]
>>> metadata["ORIGINATOR"] = 'ORIG_NAME'
>>> metadata["ORIGINATOR"] 'ORIG_NAME'
-
classmethod
from_string
(segment)¶ Create Header Section from OEM-formatted string.
Parameters: segment (str) – String containing a single OEM header section. Returns: New HeaderSection instance. Return type: new_section (HeaderSection)
-
version
¶
-
classmethod
MetaDataSection¶
-
class
oem.components.
MetaDataSection
(metadata, version='2.0')¶ Bases:
oem.base.KeyValueSection
OEM metadata section.
Container for a single OEM metadata section.
Examples
This class behaves similar to a dict allowing membership checks, iteration over keys, and value set/get.
>>> "OBJECT_NAME" in metadata: True
>>> keys = [key for key in metadata]
>>> metadata["CENTER_NAME"] = 'Mars'
>>> metadata["CENTER_NAME"] 'Mars'
-
classmethod
from_string
(segment, version)¶ Create MetaDataSection from OEM-formatted string.
Parameters: segment (str) – String containing a single OEM metadata section. Returns: New MetaDataSection instance. Return type: new_section (MetaDataSection)
-
useable_start_time
¶ Return epoch of start of useable state data range
-
useable_stop_time
¶ Return epoch of end of useable state data range
-
classmethod
DataSection¶
-
class
oem.components.
DataSection
(states, version='2.0')¶ Bases:
object
OEM data section.
Container for a single OEM ephemeris state data section.
-
classmethod
from_string
(segment, version)¶ Create DataSection from OEM-formatted string.
Parameters: segment (str) – String containing a single OEM data section. Returns: New DataSection instance. Return type: new_section (DataSection)
-
has_accel
¶ Evaluate if section contains acceleration data.
-
states
¶ Return a list of States in this section.
-
classmethod
CovarianceSection¶
-
class
oem.components.
CovarianceSection
(covariances, version='2.0')¶ Bases:
object
OEM covariance section.
Container for a single OEM covariance section.
-
covariances
¶ Return a list of covariances in this section.
-
classmethod
from_string
(segment, version)¶ Create CovarianceSection from OEM-formatted string.
Parameters: segment (str) – String containing a single OEM covariance section. Returns: New CovarianceSection instance. Return type: new_section (CovarianceSection)
-