Class SP3Parser

    • Constructor Detail

      • SP3Parser

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

      • parse

        public SP3File parse​(InputStream stream)
                      throws IOException
        Parse a SP3 file from an input stream using the UTF-8 charset.

        This method creates a BufferedReader from the stream and as such this method may read more data than necessary from stream and the additional data will be lost. The other parse methods do not have this issue.

        Parameters:
        stream - to read the SP3 file from.
        Returns:
        a parsed SP3 file.
        Throws:
        IOException - if stream throws one.
        See Also:
        parse(String), parse(BufferedReader, String)
      • parse

        public SP3File parse​(String fileName)
                      throws IOException,
                             OrekitException
        Description copied from interface: EphemerisFileParser
        Parse an ephemeris file from a file on the local file system.

        For Implementors: Most subclasses should implement this method as follows, but there is no default implementation because most subclasses should use a specialized return type.

         try (BufferedReader reader = Files.newBufferedReader(Paths.get(fileName))) {
             return parse(reader, fileName);
         }
         
        Specified by:
        parse in interface EphemerisFileParser
        Parameters:
        fileName - path to the ephemeris file.
        Returns:
        parsed ephemeris file.
        Throws:
        IOException - if one is thrown while opening or reading from fileName.
        OrekitException