public class Ocm extends NdmConstituent<Header,Segment<OcmMetadata,OcmData>> implements EphemerisFile<TimeStampedPVCoordinates,TrajectoryStateHistory>
EphemerisFile.EphemerisSegment<C extends TimeStampedPVCoordinates>, EphemerisFile.SatelliteEphemeris<C extends TimeStampedPVCoordinates,S extends EphemerisFile.EphemerisSegment<C>>
Modifier and Type | Field and Description |
---|---|
static String |
COV_LINE
Covariance line element for XML messages.
|
static String |
FORMAT_VERSION_KEY
Key for format version.
|
static String |
MAN_LINE
Maneuver line element for XML messages.
|
static String |
ROOT
Root element for XML messages.
|
static String |
TRAJ_LINE
Trajectory line element for XML messages.
|
static String |
UNKNOWN_OBJECT
Default name for unknown object.
|
Constructor and Description |
---|
Ocm(Header header,
List<Segment<OcmMetadata,OcmData>> segments,
IERSConventions conventions,
DataContext dataContext,
double mu)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
OcmData |
getData()
Get the data from the single
segment . |
OcmMetadata |
getMetadata()
Get the metadata from the single
segment . |
Map<String,OcmSatelliteEphemeris> |
getSatellites()
Get the loaded ephemeris for each satellite in the file.
|
getConventions, getDataContext, getHeader, getSegments, validate
public static final String ROOT
public static final String FORMAT_VERSION_KEY
public static final String TRAJ_LINE
public static final String COV_LINE
public static final String MAN_LINE
public static final String UNKNOWN_OBJECT
public Ocm(Header header, List<Segment<OcmMetadata,OcmData>> segments, IERSConventions conventions, DataContext dataContext, double mu)
header
- file headersegments
- ile segmentsconventions
- IERS conventionsdataContext
- used for creating frames, time scales, etc.mu
- Gravitational coefficient to use for building Cartesian/Keplerian orbits.public OcmMetadata getMetadata()
segment
.segment
public OcmData getData()
segment
.segment
public Map<String,OcmSatelliteEphemeris> getSatellites()
The metadata entries checked for use as the key are the following ones, the first non-null being used. The map from OCM files always contains only one object.
OBJECT_NAME
INTERNATIONAL_DESIGNATOR
OBJECT_DESIGNATOR
UNKNOWN_OBJECT
for unknown objectsgetSatellites
in interface EphemerisFile<TimeStampedPVCoordinates,TrajectoryStateHistory>
Copyright © 2002-2021 CS GROUP. All rights reserved.