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
    • 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.