Package org.orekit.files.sp3
Class SP3Parser
- java.lang.Object
-
- org.orekit.files.sp3.SP3Parser
-
- All Implemented Interfaces:
EphemerisFileParser<SP3>
public class SP3Parser extends Object implements EphemerisFileParser<SP3>
A parser for the SP3 orbit file format. It supports all formats from sp3-a to sp3-d.Note: this parser is thread-safe, so calling
parse(org.orekit.data.DataSource)
from different threads is allowed.- Author:
- Thomas Neidhart, Luc Maisonobe
- See Also:
- SP3-a file format, SP3-c file format, SP3-d file format
-
-
Constructor Summary
Constructors Constructor Description SP3Parser()
Create an SP3 parser using default values.SP3Parser(double mu, int interpolationSamples, Function<? super String,? extends Frame> frameBuilder)
Create an SP3 parser and specify the extra information needed to create aPropagator
from the ephemeris data.SP3Parser(double mu, int interpolationSamples, Function<? super String,? extends Frame> frameBuilder, TimeScales timeScales)
Create an SP3 parser and specify the extra information needed to create aPropagator
from the ephemeris data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SP3
parse(DataSource source)
Parse an ephemeris file from a data source.
-
-
-
Constructor Detail
-
SP3Parser
@DefaultDataContext public SP3Parser()
Create an SP3 parser using default values.This constructor uses the
default data context
.
-
SP3Parser
@DefaultDataContext public SP3Parser(double mu, int interpolationSamples, Function<? super String,? extends Frame> frameBuilder)
Create an SP3 parser and specify the extra information needed to create aPropagator
from the ephemeris data.This constructor uses the
default data context
.- Parameters:
mu
- is the standard gravitational parameter to use for creatingOrbits
from the ephemeris data. SeeConstants
.interpolationSamples
- is the number of samples to use when interpolating.frameBuilder
- is a function that can construct a frame from an SP3 coordinate system string. The coordinate system can be any 5 character string e.g. ITR92, IGb08.- See Also:
SP3Parser(double, int, Function, TimeScales)
,IGSUtils.guessFrame(String)
-
SP3Parser
public SP3Parser(double mu, int interpolationSamples, Function<? super String,? extends Frame> frameBuilder, TimeScales timeScales)
Create an SP3 parser and specify the extra information needed to create aPropagator
from the ephemeris data.- Parameters:
mu
- is the standard gravitational parameter to use for creatingOrbits
from the ephemeris data. SeeConstants
.interpolationSamples
- is the number of samples to use when interpolating.frameBuilder
- is a function that can construct a frame from an SP3 coordinate system string. The coordinate system can betimeScales
- the set of time scales used for parsing dates.- Since:
- 10.1
-
-
Method Detail
-
parse
public SP3 parse(DataSource source)
Description copied from interface:EphemerisFileParser
Parse an ephemeris file from a data source.- Specified by:
parse
in interfaceEphemerisFileParser<SP3>
- Parameters:
source
- source providing the data to parse- Returns:
- a parsed ephemeris file.
-
-