Package org.orekit.files.general
Class OrekitEphemerisFile.OrekitEphemerisSegment
java.lang.Object
org.orekit.files.general.OrekitEphemerisFile.OrekitEphemerisSegment
- All Implemented Interfaces:
EphemerisFile.EphemerisSegment<TimeStampedPVCoordinates>
- Enclosing class:
OrekitEphemerisFile
public static class OrekitEphemerisFile.OrekitEphemerisSegment
extends Object
implements EphemerisFile.EphemerisSegment<TimeStampedPVCoordinates>
Ephemeris segment.
-
Constructor Summary
ConstructorsConstructorDescriptionOrekitEphemerisSegment(List<TimeStampedPVCoordinates> coordinates, Frame frame, double mu, int interpolationSamples) constructor for OrekitEphemerisSegment. -
Method Summary
Modifier and TypeMethodDescriptionGet which derivatives of position are available in this ephemeris segment.Get the coordinates for this ephemeris segment inEphemerisFile.EphemerisSegment.getFrame().getFrame()Get the reference frame for this ephemeris segment.Get the inertial reference frame for this ephemeris segment.intGet the number of samples to use in interpolation.doublegetMu()Get the standard gravitational parameter for the satellite.getStart()Get the start date of this ephemeris segment.getStop()Get the end date of this ephemeris segment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.files.general.EphemerisFile.EphemerisSegment
getPropagator, getPropagator
-
Constructor Details
-
OrekitEphemerisSegment
public OrekitEphemerisSegment(List<TimeStampedPVCoordinates> coordinates, Frame frame, double mu, int interpolationSamples) constructor for OrekitEphemerisSegment.- Parameters:
coordinates- coordinates making up the ephemeris for this segmentframe- the frame the coordinates are inmu- the gravitational constant used in force model evaluationsinterpolationSamples- the number of samples to use during interpolation
-
-
Method Details
-
getMu
public double getMu()Get the standard gravitational parameter for the satellite.- Specified by:
getMuin interfaceEphemerisFile.EphemerisSegment<TimeStampedPVCoordinates>- Returns:
- the gravitational parameter used in
EphemerisFile.EphemerisSegment.getPropagator(AttitudeProvider), in m³/s².
-
getFrame
Get the reference frame for this ephemeris segment. The defining frame forEphemerisFile.EphemerisSegment.getCoordinates().- Specified by:
getFramein interfaceEphemerisFile.EphemerisSegment<TimeStampedPVCoordinates>- Returns:
- the reference frame for this segment. Never
null.
-
getInertialFrame
Get the inertial reference frame for this ephemeris segment. Defines the propagation frame forEphemerisFile.EphemerisSegment.getPropagator(AttitudeProvider).This implementation returns
EphemerisFile.EphemerisSegment.getFrame()if it ispseudo-inertial, or its closestancestorthat is pseudo-inertial. Implementors are encouraged to override this default implementation if a more suitable inertial frame is available.- Specified by:
getInertialFramein interfaceEphemerisFile.EphemerisSegment<TimeStampedPVCoordinates>- Returns:
- an reference frame that is inertial, i.e.
Frame.isPseudoInertial()istrue. May be the same asEphemerisFile.EphemerisSegment.getFrame()if it is inertial.
-
getInterpolationSamples
public int getInterpolationSamples()Get the number of samples to use in interpolation.- Specified by:
getInterpolationSamplesin interfaceEphemerisFile.EphemerisSegment<TimeStampedPVCoordinates>- Returns:
- the number of points to use for interpolation.
-
getAvailableDerivatives
Get which derivatives of position are available in this ephemeris segment.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.- Specified by:
getAvailableDerivativesin interfaceEphemerisFile.EphemerisSegment<TimeStampedPVCoordinates>- Returns:
- a value indicating if the file contains velocity and/or acceleration data.
-
getCoordinates
Get the coordinates for this ephemeris segment inEphemerisFile.EphemerisSegment.getFrame().- Specified by:
getCoordinatesin interfaceEphemerisFile.EphemerisSegment<TimeStampedPVCoordinates>- Returns:
- a list of state vectors in chronological order. The coordinates are not
necessarily evenly spaced in time. The value of
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.
-
getStart
Get the start date of this ephemeris segment.The date returned by this method is equivalent to
getPropagator().getMinDate().- Specified by:
getStartin interfaceEphemerisFile.EphemerisSegment<TimeStampedPVCoordinates>- Returns:
- ephemeris segment start date.
-
getStop
Get the end date of this ephemeris segment.The date returned by this method is equivalent to
getPropagator().getMaxDate().- Specified by:
getStopin interfaceEphemerisFile.EphemerisSegment<TimeStampedPVCoordinates>- Returns:
- ephemeris segment end date.
-