Class SP3

    • 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
    • Constructor Detail

      • SP3

        public SP3​(double mu,
                   int interpolationSamples,
                   Function<? super String,​? extends Frame> frameBuilder)
        Create a new SP3 file object.
        Parameters:
        mu - is the standard gravitational parameter in m^3 / s^2.
        interpolationSamples - number of samples to use in interpolation.
        frameBuilder - for constructing a reference frame from the identifier
    • Method Detail

      • setFilter

        public void setFilter​(CartesianDerivativesFilter filter)
        Set the derivatives filter.
        Parameters:
        filter - that indicates which derivatives of position are available.
      • setType

        public void setType​(SP3.SP3FileType fileType)
        Set the file type for this SP3 file.
        Parameters:
        fileType - the file type to be set
      • getTimeSystem

        public TimeSystem getTimeSystem()
        Returns the TimeSystem used to time-stamp position entries.
        Returns:
        the TimeSystem of the orbit file
      • setTimeSystem

        public void setTimeSystem​(TimeSystem system)
        Set the time system used in this SP3 file.
        Parameters:
        system - the time system to be set
      • getDataUsed

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

        public void setDataUsed​(String data)
        Set the data used indicator for this SP3 file.
        Parameters:
        data - the data used indicator to be set
      • getEpoch

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

        public void setEpoch​(AbsoluteDate time)
        Set the epoch of the SP3 file.
        Parameters:
        time - the epoch to be set
      • getGpsWeek

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

        public void setGpsWeek​(int week)
        Set the GPS week of the SP3 file.
        Parameters:
        week - the GPS week to be set
      • getSecondsOfWeek

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

        public void setSecondsOfWeek​(double seconds)
        Set the seconds of the GPS week for this SP3 file.
        Parameters:
        seconds - the seconds to be set
      • getJulianDay

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

        public void setJulianDay​(int day)
        Set the julian day for this SP3 file.
        Parameters:
        day - the julian day to be set
      • getDayFraction

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

        public void setDayFraction​(double fraction)
        Set the day fraction for this SP3 file.
        Parameters:
        fraction - the day fraction to be set
      • getEpochInterval

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

        public void setEpochInterval​(double interval)
        Set the epoch interval for this SP3 file.
        Parameters:
        interval - the interval between orbit entries
      • getNumberOfEpochs

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

        public void setNumberOfEpochs​(int epochCount)
        Set the number of epochs as contained in the SP3 file.
        Parameters:
        epochCount - the number of epochs to be set
      • getCoordinateSystem

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

        public void setCoordinateSystem​(String system)
        Set the coordinate system used for the orbit entries.
        Parameters:
        system - the coordinate system to be set
      • getOrbitTypeKey

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

        public void setOrbitTypeKey​(String oTypeKey)
        Set the orbit type key for this SP3 file.
        Parameters:
        oTypeKey - the orbit type key to be set
        Since:
        9.3
      • getAgency

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

        public void setAgency​(String agencyStr)
        Set the agency string for this SP3 file.
        Parameters:
        agencyStr - the agency string to be set
      • 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
      • getSatelliteCount

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

        public void setAccuracy​(int index,
                                double accuracy)
        Set the formal accuracy for a satellite.
        Parameters:
        index - is the index of the satellite.
        accuracy - of the satellite, in m.
      • getAccuracy

        public double getAccuracy​(int index)
        Get the formal accuracy for a satellite.
        Parameters:
        index - is the index of the satellite.
        Returns:
        accuracy of the satellite, in m.
      • 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
      • addSatelliteCoordinate

        public void addSatelliteCoordinate​(String satId,
                                           SP3.SP3Coordinate coord)
        Adds a new P/V coordinate for a given satellite.
        Parameters:
        satId - the satellite identifier
        coord - the P/V coordinate of the satellite