public class SP3Segment extends Object implements EphemerisFile.EphemerisSegment<SP3Coordinate>
SP3Ephemeris
.Constructor and Description |
---|
SP3Segment(double mu,
Frame frame,
int interpolationSamples,
CartesianDerivativesFilter filter)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCoordinate(SP3Coordinate coord)
Adds a new P/V coordinate.
|
CartesianDerivativesFilter |
getAvailableDerivatives()
Get which derivatives of position are available in this ephemeris segment.
|
List<SP3Coordinate> |
getCoordinates()
Get the coordinates for this ephemeris segment in
EphemerisFile.EphemerisSegment.getFrame() . |
Frame |
getFrame()
Get the reference frame for this ephemeris segment.
|
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 segment as a propagator.
|
BoundedPropagator |
getPropagator(AttitudeProvider attitudeProvider)
View this ephemeris segment as a propagator.
|
AbsoluteDate |
getStart()
Get the start date of this ephemeris segment.
|
AbsoluteDate |
getStop()
Get the end date of this ephemeris segment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInertialFrame
public SP3Segment(double mu, Frame frame, int interpolationSamples, CartesianDerivativesFilter filter)
mu
- standard gravitational parameter to use for creating
Orbits
from the ephemeris data.frame
- reference frameinterpolationSamples
- number of points to use for interpolationfilter
- available derivativespublic double getMu()
getMu
in interface EphemerisFile.EphemerisSegment<SP3Coordinate>
EphemerisFile.EphemerisSegment.getPropagator(AttitudeProvider)
, in m³/s².public AbsoluteDate getStart()
The date returned by this method is equivalent to getPropagator().getMinDate()
.
getStart
in interface EphemerisFile.EphemerisSegment<SP3Coordinate>
public AbsoluteDate getStop()
The date returned by this method is equivalent to getPropagator().getMaxDate()
.
getStop
in interface EphemerisFile.EphemerisSegment<SP3Coordinate>
public Frame getFrame()
EphemerisFile.EphemerisSegment.getCoordinates()
.getFrame
in interface EphemerisFile.EphemerisSegment<SP3Coordinate>
null
.public int getInterpolationSamples()
getInterpolationSamples
in interface EphemerisFile.EphemerisSegment<SP3Coordinate>
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<SP3Coordinate>
public List<SP3Coordinate> getCoordinates()
EphemerisFile.EphemerisSegment.getFrame()
.getCoordinates
in interface EphemerisFile.EphemerisSegment<SP3Coordinate>
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 void addCoordinate(SP3Coordinate coord)
coord
- the P/V coordinate of the satellitepublic BoundedPropagator getPropagator()
In order to view the ephemeris for this satellite as a Propagator
several conditions must be met. An Orekit Frame
must be constructable
from the frame specification in the ephemeris file. This condition is met when
EphemerisFile.EphemerisSegment.getFrame()
return normally. Additionally,
EphemerisFile.EphemerisSegment.getMu()
must return a valid value. If these conditions are not met an
OrekitException
may be thrown by this method or by one of the methods
of the returned Propagator
.
The attitude provider
used is a FrameAlignedProvider
aligned with the inertial frame
Each call to this method creates a new propagator.
getPropagator
in interface EphemerisFile.EphemerisSegment<SP3Coordinate>
public BoundedPropagator getPropagator(AttitudeProvider attitudeProvider)
In order to view the ephemeris for this satellite as a Propagator
several conditions must be met. An Orekit Frame
must be constructable
from the frame specification in the ephemeris file. This condition is met when
EphemerisFile.EphemerisSegment.getFrame()
return normally. Additionally,
EphemerisFile.EphemerisSegment.getMu()
must return a valid value. 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<SP3Coordinate>
attitudeProvider
- provider for attitude computationCopyright © 2002-2023 CS GROUP. All rights reserved.