Class CPFParser

  • All Implemented Interfaces:
    EphemerisFileParser<CPF>

    public class CPFParser
    extends Object
    implements EphemerisFileParser<CPF>
    A parser for the CPF orbit file format.

    It supports both 1.0 and 2.0 versions

    Note: Only required header keys are read. Furthermore, only position data are read. Other keys are simply ignored Contributions are welcome to support more fields in the format.

    Since:
    10.3
    Author:
    Bryan Cazabonne
    See Also:
    1.0 file format, 2.0 file format
    • Field Detail

      • DEFAULT_INTERPOLATION_SAMPLE

        public static final int DEFAULT_INTERPOLATION_SAMPLE
        Default number of sample for interpolating data (See: reference documents).
        See Also:
        Constant Field Values
    • Constructor Detail

      • CPFParser

        public CPFParser​(double mu,
                         int interpolationSamples,
                         IERSConventions iersConventions,
                         TimeScale utc,
                         Frames frames)
        Constructor.
        Parameters:
        mu - standard gravitational parameter to use for creating Orbits from the ephemeris data.
        interpolationSamples - number of samples to use when interpolating
        iersConventions - IERS convention for frames definition
        utc - time scale used to define epochs in CPF files (UTC)
        frames - set of frames for satellite coordinates
    • Method Detail

      • parse

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