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_STRINGDeprecated.as of 12.1 not used anymore
-
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 Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FrameguessFrame(String name)Deprecated.as of 12.1, replaced byIGSUtils.guessFrame(String)SP3parse(DataSource source)Parse an ephemeris file from a data source.
-
-
-
Field Detail
-
SP3_FRAME_CENTER_STRING
@Deprecated public static final String SP3_FRAME_CENTER_STRING
Deprecated.as of 12.1 not used anymoreString 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.
-
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),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 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
-
guessFrame
@Deprecated @DefaultDataContext public static Frame guessFrame(String name)
Deprecated.as of 12.1, replaced byIGSUtils.guessFrame(String)Default string toFrameconversion forSP3Parser().This method uses the
default data context. If the frame names has a form like IGS##, or ITR##, or SLR##, where ## is a two digits number, then this number will be used to build the appropriateITRFVersion. Otherwise (for example if name is UNDEF or WGS84), then a defaultITRFwill be created.- Parameters:
name- of the frame.- Returns:
- ITRF based on 2010 conventions, with tidal effects considered during EOP interpolation
-
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.
-
-