Package org.orekit.files.sp3
Class SP3Parser
java.lang.Object
org.orekit.files.sp3.SP3Parser
- All Implemented Interfaces:
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault number of samples to use when interpolating SP3 coordinates. -
Constructor Summary
ConstructorsConstructorDescriptionCreate 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 aPropagatorfrom 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 aPropagatorfrom the ephemeris data. -
Method Summary
Modifier and TypeMethodDescriptionparse(DataSource source) Parse an ephemeris file from a data source.
-
Field Details
-
DEFAULT_INTERPOLATION_SAMPLES
public static final int DEFAULT_INTERPOLATION_SAMPLESDefault number of samples to use when interpolating SP3 coordinates.- See Also:
-
-
Constructor Details
-
SP3Parser
Create an SP3 parser using default values.This constructor uses the
default data context. It also uses adefault number of samplesto interpolate coordinates.- See Also:
-
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 aPropagatorfrom the ephemeris data.This constructor uses the
default data context.- Parameters:
mu- is the standard gravitational parameter to use for creatingOrbitsfrom 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
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 aPropagatorfrom the ephemeris data.- Parameters:
mu- is the standard gravitational parameter to use for creatingOrbitsfrom 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 Details
-
parse
Description copied from interface:EphemerisFileParserParse an ephemeris file from a data source.- Specified by:
parsein interfaceEphemerisFileParser<SP3>- Parameters:
source- source providing the data to parse- Returns:
- a parsed ephemeris file.
-