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
-
-
Field Summary
Fields Modifier and Type Field Description static StringSP3_FRAME_CENTER_STRINGString representation of the center of ephemeris coordinate system.
-
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 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SP3parse(DataSource source)Parse an ephemeris file from a data source.
-
-
-
Field Detail
-
SP3_FRAME_CENTER_STRING
public static final String SP3_FRAME_CENTER_STRING
String representation of the center of ephemeris coordinate system.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SP3Parser
@DefaultDataContext public SP3Parser()
Create an SP3 parser using default values.This constructor uses the
default data context.- See Also:
SP3Parser(double, int, Function)
-
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(double, int, Function, TimeScales)
-
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 Detail
-
parse
public SP3 parse(DataSource source)
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.
-
-