Class SP3File

  • All Implemented Interfaces:
    EphemerisFile

    public class SP3File
    extends Object
    implements EphemerisFile
    Represents a parsed SP3 orbit file.
    Author:
    Thomas Neidhart, Evan Ward
    • Field Detail

      • SP3_FRAME_CENTER_STRING

        public static final String SP3_FRAME_CENTER_STRING
        String representation of the center of ephemeris coordinate system.
        See Also:
        Constant Field Values
    • Method Detail

      • getDataUsed

        public String getDataUsed()
        Returns the data used indicator from the SP3 file.
        Returns:
        the data used indicator (unparsed)
      • getEpoch

        public AbsoluteDate getEpoch()
        Returns the start epoch of the orbit file.
        Returns:
        the start epoch
      • getGpsWeek

        public int getGpsWeek()
        Returns the GPS week as contained in the SP3 file.
        Returns:
        the GPS week of the SP3 file
      • getSecondsOfWeek

        public double getSecondsOfWeek()
        Returns the seconds of the GPS week as contained in the SP3 file.
        Returns:
        the seconds of the GPS week
      • getJulianDay

        public int getJulianDay()
        Returns the julian day for this SP3 file.
        Returns:
        the julian day
      • getDayFraction

        public double getDayFraction()
        Returns the day fraction for this SP3 file.
        Returns:
        the day fraction
      • getEpochInterval

        public double getEpochInterval()
        Returns the time interval between epochs (in seconds).
        Returns:
        the time interval between epochs
      • getNumberOfEpochs

        public int getNumberOfEpochs()
        Returns the number of epochs contained in this orbit file.
        Returns:
        the number of epochs
      • getCoordinateSystem

        public String getCoordinateSystem()
        Returns the coordinate system of the entries in this orbit file.
        Returns:
        the coordinate system
      • getOrbitTypeKey

        public String getOrbitTypeKey()
        Returns the orbit type key for this SP3 file.
        Returns:
        the orbit type key
        Since:
        9.3
      • getAgency

        public String getAgency()
        Returns the agency that prepared this SP3 file.
        Returns:
        the agency
      • addSatellite

        public void addSatellite​(String satId)
        Add a new satellite with a given identifier to the list of stored satellites.
        Parameters:
        satId - the satellite identifier
      • getSatellites

        public Map<String,​SP3File.SP3Ephemeris> getSatellites()
        Description copied from interface: EphemerisFile
        Get the loaded ephemeris for each satellite in the file.
        Specified by:
        getSatellites in interface EphemerisFile
        Returns:
        a map from the satellite's ID to the information about that satellite contained in the file.
      • getSatelliteCount

        public int getSatelliteCount()
        Get the number of satellites contained in this orbit file.
        Returns:
        the number of satellites
      • containsSatellite

        public boolean containsSatellite​(String satId)
        Tests whether a satellite with the given id is contained in this orbit file.
        Parameters:
        satId - the satellite id
        Returns:
        true if the satellite is contained in the file, false otherwise