Class CPF

java.lang.Object
org.orekit.files.ilrs.CPF
All Implemented Interfaces:
EphemerisFile<CPF.CPFCoordinate,CPF.CPFEphemeris>

public class CPF extends Object implements EphemerisFile<CPF.CPFCoordinate,CPF.CPFEphemeris>
This class stores all the information of the Consolidated laser ranging Prediction File (CPF) parsed by CPFParser. It contains the header and a list of ephemeris entry.
Since:
10.3
Author:
Bryan Cazabonne
  • Field Details

    • DEFAULT_ID

      public static final String DEFAULT_ID
      Default satellite ID, used if header is null when initializing the ephemeris.
      See Also:
  • Constructor Details

    • CPF

      public CPF()
      Constructor.
  • Method Details

    • getSatellites

      public Map<String,CPF.CPFEphemeris> getSatellites()
      Get the loaded ephemeris for each satellite in the file. First key corresponds to String value of ILRSHeader.getIlrsSatelliteId()
      Specified by:
      getSatellites in interface EphemerisFile<CPF.CPFCoordinate,CPF.CPFEphemeris>
      Returns:
      a map from the satellite's ID to the information about that satellite contained in the file.
    • getHeader

      public CPFHeader getHeader()
      Get the CPF file header.
      Returns:
      the CPF file header
    • getTimeScale

      public TimeScale getTimeScale()
      Get the time scale used in CPF file.
      Returns:
      the time scale used to parse epochs in CPF file.
    • getComments

      public List<String> getComments()
      Get the comments contained in the file.
      Returns:
      the comments contained in the file
    • addSatelliteCoordinates

      public void addSatelliteCoordinates(String id, List<CPF.CPFCoordinate> coord)
      Adds a set of P/V coordinates to the satellite.
      Parameters:
      id - satellite ILRS identifier
      coord - set of coordinates
      Since:
      11.0.1
    • addSatelliteCoordinate

      public void addSatelliteCoordinate(String id, CPF.CPFCoordinate coord)
      Add a new P/V coordinates to the satellite.
      Parameters:
      id - satellite ILRS identifier
      coord - the P/V coordinate of the satellite
      Since:
      11.0.1
    • addSatelliteVelocityToCPFCoordinate

      public void addSatelliteVelocityToCPFCoordinate(String id, Vector3D velocity)
      Add the velocity to the last CPF coordinate entry.
      Parameters:
      id - satellite ILRS identifier
      velocity - the velocity vector of the satellite
      Since:
      11.2
    • setInterpolationSample

      public void setInterpolationSample(int interpolationSample)
      Set the interpolation sample.
      Parameters:
      interpolationSample - interpolation sample
    • setMu

      public void setMu(double mu)
      Set the gravitational coefficient.
      Parameters:
      mu - the coefficient to be set
    • setTimeScale

      public void setTimeScale(TimeScale timeScale)
      Set the time scale.
      Parameters:
      timeScale - use to parse dates in this file.
    • setFilter

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