public class CPFFile.CPFEphemeris extends Object implements EphemerisFile.SatelliteEphemeris, EphemerisFile.EphemerisSegment
Constructor and Description |
---|
CPFEphemeris()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CartesianDerivativesFilter |
getAvailableDerivatives()
Get which derivatives of position are available in this ephemeris segment.
|
List<CPFFile.CPFCoordinate> |
getCoordinates()
Get the coordinates for this ephemeris segment in
EphemerisFile.EphemerisSegment.getFrame() . |
List<CPFFile.CPFCoordinate> |
getEphemeridesDataLines()
Get the list of Ephemerides data lines.
|
Frame |
getFrame()
Get the reference frame for this ephemeris segment.
|
String |
getFrameCenterString()
Get the name of the center of the coordinate system the ephemeris is provided
in.
|
String |
getFrameString()
Get the defining frame for this ephemeris segment.
|
String |
getId()
Get the satellite ID.
|
int |
getInterpolationSamples()
Get the number of samples to use in interpolation.
|
double |
getMu()
Get the standard gravitational parameter for the satellite.
|
BoundedPropagator |
getPropagator()
View this ephemeris as a propagator, combining data from all
segments . |
List<CPFFile.CPFEphemeris> |
getSegments()
Returns a list containing only
this . |
AbsoluteDate |
getStart()
Get the start date of the ephemeris.
|
AbsoluteDate |
getStop()
Get the end date of the ephemeris.
|
TimeScale |
getTimeScale()
Get the time scale for this ephemeris segment.
|
String |
getTimeScaleString()
Get the time scale for this ephemeris segment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInertialFrame
public String getFrameCenterString()
getFrameCenterString
in interface EphemerisFile.EphemerisSegment
public String getFrameString()
getFrameString
in interface EphemerisFile.EphemerisSegment
null
if the ephemeris file does not specify a frame.public Frame getFrame()
EphemerisFile.EphemerisSegment.getCoordinates()
.getFrame
in interface EphemerisFile.EphemerisSegment
null
.public String getTimeScaleString()
getTimeScaleString
in interface EphemerisFile.EphemerisSegment
null
if the ephemeris file does not specify a time scale.public TimeScale getTimeScale()
getTimeScale
in interface EphemerisFile.EphemerisSegment
null
.public int getInterpolationSamples()
getInterpolationSamples
in interface EphemerisFile.EphemerisSegment
public CartesianDerivativesFilter getAvailableDerivatives()
While EphemerisFile.EphemerisSegment.getCoordinates()
always returns position, velocity, and
acceleration the return value from this method indicates which of those are in
the ephemeris file and are actually valid.
getAvailableDerivatives
in interface EphemerisFile.EphemerisSegment
public List<CPFFile.CPFCoordinate> getCoordinates()
EphemerisFile.EphemerisSegment.getFrame()
.getCoordinates
in interface EphemerisFile.EphemerisSegment
EphemerisFile.EphemerisSegment.getAvailableDerivatives()
indicates if the velocity or accelerations were
specified in the file. Any position, velocity, or acceleration coordinates that
are not specified in the ephemeris file are zero in the returned values.public String getId()
getId
in interface EphemerisFile.SatelliteEphemeris
null
.public double getMu()
getMu
in interface EphemerisFile.EphemerisSegment
getMu
in interface EphemerisFile.SatelliteEphemeris
EphemerisFile.SatelliteEphemeris.getPropagator()
, in m^3 /
s^2.public List<CPFFile.CPFEphemeris> getSegments()
this
.getSegments
in interface EphemerisFile.SatelliteEphemeris
public AbsoluteDate getStart()
The date returned by this method is equivalent to getPropagator().getMinDate()
.
getStart
in interface EphemerisFile.EphemerisSegment
getStart
in interface EphemerisFile.SatelliteEphemeris
public AbsoluteDate getStop()
The date returned by this method is equivalent to getPropagator().getMaxDate()
.
getStop
in interface EphemerisFile.EphemerisSegment
getStop
in interface EphemerisFile.SatelliteEphemeris
public BoundedPropagator getPropagator()
segments
.
In order to view the ephemeris for this satellite as a Propagator
several conditions must be met. An Orekit Frame
and TimeScale
must be constructable from the frame and time scale specification in the
ephemeris file. This condition is met when EphemerisFile.EphemerisSegment.getFrame()
and EphemerisFile.EphemerisSegment.getTimeScale()
return normally for all segments
. If there are multiple segments they must be adjacent
such that there are no duplicates or gaps in the ephemeris. The definition of
adjacent depends on the ephemeris format as some formats define usable start
and stop times that are different from the ephemeris data start and stop times.
If these conditions are not met an OrekitException
may be thrown by
this method or by one of the methods of the returned Propagator
.
Each call to this method creates a new propagator.
getPropagator
in interface EphemerisFile.EphemerisSegment
getPropagator
in interface EphemerisFile.SatelliteEphemeris
public List<CPFFile.CPFCoordinate> getEphemeridesDataLines()
Copyright © 2002-2020 CS GROUP. All rights reserved.