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:
  • Field Details

    • DEFAULT_INTERPOLATION_SAMPLES

      public static final int DEFAULT_INTERPOLATION_SAMPLES
      Default number of samples to use when interpolating SP3 coordinates.
      See Also:
  • Constructor Details

    • SP3Parser

      @DefaultDataContext public SP3Parser()
      Create an SP3 parser using default values.

      This constructor uses the default data context. It also uses a default number of samples to 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 a Propagator from the ephemeris data.

      This constructor uses the default data context.

      Parameters:
      mu - is the standard gravitational parameter to use for creating Orbits from the ephemeris data. See Constants.
      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 a Propagator from the ephemeris data.
      Parameters:
      mu - is the standard gravitational parameter to use for creating Orbits from the ephemeris data. See Constants.
      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
      timeScales - the set of time scales used for parsing dates.
      Since:
      10.1
  • Method Details

    • parse

      public SP3 parse(DataSource source)
      Description copied from interface: EphemerisFileParser
      Parse an ephemeris file from a data source.
      Specified by:
      parse in interface EphemerisFileParser<SP3>
      Parameters:
      source - source providing the data to parse
      Returns:
      a parsed ephemeris file.