Package org.orekit.files.general
Class OrekitEphemerisFile.OrekitEphemerisSegment
- java.lang.Object
-
- org.orekit.files.general.OrekitEphemerisFile.OrekitEphemerisSegment
-
- All Implemented Interfaces:
EphemerisFile.EphemerisSegment
- Enclosing class:
- OrekitEphemerisFile
public static class OrekitEphemerisFile.OrekitEphemerisSegment extends Object implements EphemerisFile.EphemerisSegment
-
-
Constructor Summary
Constructors Constructor Description OrekitEphemerisSegment(List<TimeStampedPVCoordinates> coordinates, Frame frame, String frameCenterString, double mu, TimeScale timeScale, int samples)constructor for OrekitEphemerisSegment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CartesianDerivativesFiltergetAvailableDerivatives()Get which derivatives of position are available in this ephemeris segment.List<TimeStampedPVCoordinates>getCoordinates()Get the coordinates for this ephemeris segment.FramegetFrame()Get the reference frame for this ephemeris segment.StringgetFrameCenterString()Get the name of the center of the coordinate system the ephemeris is provided in.StringgetFrameString()Get the defining frame for this ephemeris segment.intgetInterpolationSamples()Get the number of samples to use in interpolation.doublegetMu()Get the standard gravitational parameter for the satellite.AbsoluteDategetStart()Get the start date of this ephemeris segment.AbsoluteDategetStop()Get the end date of this ephemeris segment.TimeScalegetTimeScale()Get the time scale for this ephemeris segment.StringgetTimeScaleString()Get the time scale for this ephemeris segment.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.files.general.EphemerisFile.EphemerisSegment
getPropagator
-
-
-
-
Constructor Detail
-
OrekitEphemerisSegment
public OrekitEphemerisSegment(List<TimeStampedPVCoordinates> coordinates, Frame frame, String frameCenterString, double mu, TimeScale timeScale, int samples)
constructor for OrekitEphemerisSegment.- Parameters:
coordinates- coordinates making up the ephemeris for this segmentframe- the frame the coordinates are inframeCenterString- the name of celestial body the frame is attached tomu- the gravitional constant used in force model evaluationstimeScale- the time scale of these ephemeris pointssamples- the number of samples to use during interpolation
-
-
Method Detail
-
getMu
public double getMu()
Description copied from interface:EphemerisFile.EphemerisSegmentGet the standard gravitational parameter for the satellite.- Specified by:
getMuin interfaceEphemerisFile.EphemerisSegment- Returns:
- the gravitational parameter use in
EphemerisFile.EphemerisSegment.getPropagator(), in m^3 / s^2.
-
getFrameCenterString
public String getFrameCenterString()
Description copied from interface:EphemerisFile.EphemerisSegmentGet the name of the center of the coordinate system the ephemeris is provided in. This may be a natural origin, such as the center of the Earth, another satellite, etc.- Specified by:
getFrameCenterStringin interfaceEphemerisFile.EphemerisSegment- Returns:
- the name of the frame center
-
getFrameString
public String getFrameString()
Description copied from interface:EphemerisFile.EphemerisSegmentGet the defining frame for this ephemeris segment.- Specified by:
getFrameStringin interfaceEphemerisFile.EphemerisSegment- Returns:
- the frame identifier, as specified in the ephemeris file, or
nullif the ephemeris file does not specify a frame.
-
getFrame
public Frame getFrame()
Description copied from interface:EphemerisFile.EphemerisSegmentGet the reference frame for this ephemeris segment.- Specified by:
getFramein interfaceEphemerisFile.EphemerisSegment- Returns:
- the reference frame for this segment. Never
null.
-
getTimeScaleString
public String getTimeScaleString()
Description copied from interface:EphemerisFile.EphemerisSegmentGet the time scale for this ephemeris segment.- Specified by:
getTimeScaleStringin interfaceEphemerisFile.EphemerisSegment- Returns:
- the time scale identifier, as specified in the ephemeris file, or
nullif the ephemeris file does not specify a time scale.
-
getTimeScale
public TimeScale getTimeScale()
Description copied from interface:EphemerisFile.EphemerisSegmentGet the time scale for this ephemeris segment.- Specified by:
getTimeScalein interfaceEphemerisFile.EphemerisSegment- Returns:
- the time scale for this segment. Never
null.
-
getInterpolationSamples
public int getInterpolationSamples()
Description copied from interface:EphemerisFile.EphemerisSegmentGet the number of samples to use in interpolation.- Specified by:
getInterpolationSamplesin interfaceEphemerisFile.EphemerisSegment- Returns:
- the number of points to use for interpolation.
-
getAvailableDerivatives
public CartesianDerivativesFilter getAvailableDerivatives()
Description copied from interface:EphemerisFile.EphemerisSegmentGet 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- Returns:
- a value indicating if the file contains velocity and/or acceleration data.
-
getCoordinates
public List<TimeStampedPVCoordinates> getCoordinates()
Description copied from interface:EphemerisFile.EphemerisSegmentGet the coordinates for this ephemeris segment.- Specified by:
getCoordinatesin interfaceEphemerisFile.EphemerisSegment- 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
public AbsoluteDate getStart()
Description copied from interface:EphemerisFile.EphemerisSegmentGet the start date of this ephemeris segment.The date returned by this method is equivalent to
getPropagator().getMinDate().- Specified by:
getStartin interfaceEphemerisFile.EphemerisSegment- Returns:
- ephemeris segment start date.
-
getStop
public AbsoluteDate getStop()
Description copied from interface:EphemerisFile.EphemerisSegmentGet the end date of this ephemeris segment.The date returned by this method is equivalent to
getPropagator().getMaxDate().- Specified by:
getStopin interfaceEphemerisFile.EphemerisSegment- Returns:
- ephemeris segment end date.
-
-