Class TLEPropagator
- java.lang.Object
-
- org.orekit.propagation.AbstractPropagator
-
- org.orekit.propagation.analytical.AbstractAnalyticalPropagator
-
- org.orekit.propagation.analytical.tle.TLEPropagator
-
- All Implemented Interfaces:
Propagator,PVCoordinatesProvider
public abstract class TLEPropagator extends AbstractAnalyticalPropagator
This class provides elements to propagate TLE's.The models used are SGP4 and SDP4, initially proposed by NORAD as the unique convenient propagator for TLE's. Inputs and outputs of this propagator are only suited for NORAD two lines elements sets, since it uses estimations and mean values appropriate for TLE's only.
Deep- or near- space propagator is selected internally according to NORAD recommendations so that the user has not to worry about the used computation methods. One instance is created for each TLE (this instance can only be get using
selectExtrapolator(TLE)method, and can computeposition and velocity coordinatesat any time. Maximum accuracy is guaranteed in a 24h range period before and after the provided TLE epoch (of course this accuracy is not really measurable nor predictable: according to CelesTrak, the precision is close to one kilometer and error won't probably rise above 2 km).This implementation is largely inspired from the paper and source code Revisiting Spacetrack Report #3 and is fully compliant with its results and tests cases.
- Author:
- Felix R. Hoots, Ronald L. Roehrich, December 1980 (original fortran), David A. Vallado, Paul Crawford, Richard Hujsak, T.S. Kelso (C++ translation and improvements), Fabien Maussion (java translation)
- See Also:
TLE
-
-
Field Summary
Fields Modifier and Type Field Description protected doubleafinal semi major axis.protected doublea0dporiginal recovered semi major axis.protected doublebeta0sqrt (1 - e2).protected doublebeta021 - e2.protected doublec1C1 from SPTRCK #3.protected doublec2C2 from SPTRCK #3.protected doublec4C4 from SPTRCK #3.protected doublecoefcoef for SGP C3 computation.protected doublecoef1coef for SGP C5 computation.protected doublecosi0cosinus original inclination.protected doubleefinal eccentricity.protected doublee0sqoriginal eccentricity squared.protected doubleeetaoriginal eccentricity * eta.protected doubleetaeta from SPTRCK #3.protected doubleetasqeta squared.protected doubleifinal inclination.protected doubleomegafinal perigee argument.protected doubleomgdotcommon parameter for perigee argument (omega) computation.protected doubleperigeperigee, expressed in KM and ALTITUDE.protected doubles4s* new value for the contant s.protected doublesini0sinus original inclination.protected doublet2cof3/2 * C1.protected doubletheta2cos io squared.protected TLEtleInitial state.protected doubletsitsi from SPTRCK #3.protected doublexlL from SPTRCK #3.protected doublexmdotcommon parameter for mean anomaly (M) computation.protected doublexn0dporiginal recovered mean motion.protected doublexnodcfcommon parameter for raan (OMEGA) computation.protected doublexnodefinal RAAN.protected doublexnodotcommon parameter for raan (OMEGA) computation.-
Fields inherited from interface org.orekit.propagation.Propagator
DEFAULT_LAW, DEFAULT_MASS, EPHEMERIS_GENERATION_MODE, MASTER_MODE, SLAVE_MODE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTLEPropagator(TLE initialTLE, AttitudeProvider attitudeProvider, double mass)Protected constructor for derived classes.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FramegetFrame()Get the frame in which the orbit is propagated.protected doublegetMass(AbsoluteDate date)Get the mass.static doublegetMU()Get the Earth gravity coefficient used for TLE propagation.PVCoordinatesgetPVCoordinates(AbsoluteDate date)Get the extrapolated position and velocity from an initial TLE.TLEgetTLE()Get the underlying TLE.protected OrbitpropagateOrbit(AbsoluteDate date)Extrapolate an orbit up to a specific target date.voidresetInitialState(SpacecraftState state)Reset the propagator initial state.protected voidresetIntermediateState(SpacecraftState state, boolean forward)Reset an intermediate state.static TLEPropagatorselectExtrapolator(TLE tle)Selects the extrapolator to use with the selected TLE.static TLEPropagatorselectExtrapolator(TLE tle, AttitudeProvider attitudeProvider, double mass)Selects the extrapolator to use with the selected TLE.protected abstract voidsxpInitialize()Initialization proper to each propagator (SGP or SDP).protected abstract voidsxpPropagate(double t)Propagation proper to each propagator (SGP or SDP).-
Methods inherited from class org.orekit.propagation.analytical.AbstractAnalyticalPropagator
acceptStep, addEventDetector, basicPropagate, clearEventsDetectors, getEventsDetectors, getGeneratedEphemeris, getPvProvider, propagate
-
Methods inherited from class org.orekit.propagation.AbstractPropagator
addAdditionalStateProvider, getAdditionalStateProviders, getAttitudeProvider, getFixedStepSize, getInitialState, getManagedAdditionalStates, getMode, getPVCoordinates, getStartDate, getStepHandler, isAdditionalStateManaged, propagate, setAttitudeProvider, setEphemerisMode, setEphemerisMode, setMasterMode, setMasterMode, setSlaveMode, setStartDate, updateAdditionalStates
-
-
-
-
Field Detail
-
tle
protected final TLE tle
Initial state.
-
xnode
protected double xnode
final RAAN.
-
a
protected double a
final semi major axis.
-
e
protected double e
final eccentricity.
-
i
protected double i
final inclination.
-
omega
protected double omega
final perigee argument.
-
xl
protected double xl
L from SPTRCK #3.
-
a0dp
protected double a0dp
original recovered semi major axis.
-
xn0dp
protected double xn0dp
original recovered mean motion.
-
cosi0
protected double cosi0
cosinus original inclination.
-
theta2
protected double theta2
cos io squared.
-
sini0
protected double sini0
sinus original inclination.
-
xmdot
protected double xmdot
common parameter for mean anomaly (M) computation.
-
omgdot
protected double omgdot
common parameter for perigee argument (omega) computation.
-
xnodot
protected double xnodot
common parameter for raan (OMEGA) computation.
-
e0sq
protected double e0sq
original eccentricity squared.
-
beta02
protected double beta02
1 - e2.
-
beta0
protected double beta0
sqrt (1 - e2).
-
perige
protected double perige
perigee, expressed in KM and ALTITUDE.
-
etasq
protected double etasq
eta squared.
-
eeta
protected double eeta
original eccentricity * eta.
-
s4
protected double s4
s* new value for the contant s.
-
tsi
protected double tsi
tsi from SPTRCK #3.
-
eta
protected double eta
eta from SPTRCK #3.
-
coef
protected double coef
coef for SGP C3 computation.
-
coef1
protected double coef1
coef for SGP C5 computation.
-
c1
protected double c1
C1 from SPTRCK #3.
-
c2
protected double c2
C2 from SPTRCK #3.
-
c4
protected double c4
C4 from SPTRCK #3.
-
xnodcf
protected double xnodcf
common parameter for raan (OMEGA) computation.
-
t2cof
protected double t2cof
3/2 * C1.
-
-
Constructor Detail
-
TLEPropagator
protected TLEPropagator(TLE initialTLE, AttitudeProvider attitudeProvider, double mass)
Protected constructor for derived classes.- Parameters:
initialTLE- the unique TLE to propagateattitudeProvider- provider for attitude computationmass- spacecraft mass (kg)
-
-
Method Detail
-
selectExtrapolator
public static TLEPropagator selectExtrapolator(TLE tle)
Selects the extrapolator to use with the selected TLE.- Parameters:
tle- the TLE to propagate.- Returns:
- the correct propagator.
-
selectExtrapolator
public static TLEPropagator selectExtrapolator(TLE tle, AttitudeProvider attitudeProvider, double mass)
Selects the extrapolator to use with the selected TLE.- Parameters:
tle- the TLE to propagate.attitudeProvider- provider for attitude computationmass- spacecraft mass (kg)- Returns:
- the correct propagator.
-
getMU
public static double getMU()
Get the Earth gravity coefficient used for TLE propagation.- Returns:
- the Earth gravity coefficient.
-
getPVCoordinates
public PVCoordinates getPVCoordinates(AbsoluteDate date)
Get the extrapolated position and velocity from an initial TLE.- Parameters:
date- the final date- Returns:
- the final PVCoordinates
-
sxpInitialize
protected abstract void sxpInitialize()
Initialization proper to each propagator (SGP or SDP).
-
sxpPropagate
protected abstract void sxpPropagate(double t)
Propagation proper to each propagator (SGP or SDP).- Parameters:
t- the offset from initial epoch (min)
-
resetInitialState
public void resetInitialState(SpacecraftState state)
Reset the propagator initial state.- Specified by:
resetInitialStatein interfacePropagator- Overrides:
resetInitialStatein classAbstractPropagator- Parameters:
state- new initial state to consider
-
resetIntermediateState
protected void resetIntermediateState(SpacecraftState state, boolean forward)
Reset an intermediate state.- Specified by:
resetIntermediateStatein classAbstractAnalyticalPropagator- Parameters:
state- new intermediate state to considerforward- if true, the intermediate state is valid for propagations after itself
-
getMass
protected double getMass(AbsoluteDate date)
Get the mass.- Specified by:
getMassin classAbstractAnalyticalPropagator- Parameters:
date- target date for the orbit- Returns:
- mass mass
-
propagateOrbit
protected Orbit propagateOrbit(AbsoluteDate date)
Extrapolate an orbit up to a specific target date.- Specified by:
propagateOrbitin classAbstractAnalyticalPropagator- Parameters:
date- target date for the orbit- Returns:
- extrapolated parameters
-
getTLE
public TLE getTLE()
Get the underlying TLE.- Returns:
- underlying TLE
-
getFrame
public Frame getFrame()
Get the frame in which the orbit is propagated.The propagation frame is the definition frame of the initial state, so this method should be called after this state has been set, otherwise it may return null.
- Specified by:
getFramein interfacePropagator- Overrides:
getFramein classAbstractPropagator- Returns:
- frame in which the orbit is propagated
- See Also:
Propagator.resetInitialState(SpacecraftState)
-
-