Class ObservationsBlock

  • All Implemented Interfaces:
    Data, Section

    public class ObservationsBlock
    extends CommentsContainer
    implements Data
    The Observations Block class contain metadata and the list of observation data lines.

    Beware that the Orekit getters and setters all rely on SI units. The parsers and writers take care of converting these SI units into CCSDS mandatory units. The Unit class provides useful fromSi and toSI methods in case the callers already use CCSDS units instead of the API SI units. The general-purpose Unit class (without an 's') and the CCSDS-specific Units class (with an 's') also provide some predefined units. These predefined units and the fromSi and toSI conversion methods are indeed what the parsers and writers use for the conversions.

    The reason for which the observations have been separated into blocks is that the different data blocks in a TDM file usually refers to different types of observations. An observation block is associated with a TDM metadata object and contains a list of observations. At this level, an observation is not an Orekit object, it is a custom object containing:

    • a keyword, the type of the observation;
    • a timetag, the date of the observation;
    • a measurement, the value of the observation.
    Author:
    Maxime Journot
    • Constructor Detail

      • ObservationsBlock

        public ObservationsBlock()
        ObservationsBlock constructor.
    • Method Detail

      • getObservations

        public List<Observation> getObservations()
        Get the list of Observations data lines.
        Returns:
        a reference to the internal list of Observations data lines
      • setObservations

        public void setObservations​(List<Observation> observations)
        Set the list of Observations Data Lines.
        Parameters:
        observations - the list of Observations Data Lines to set
      • addObservation

        public void addObservation​(Observation observation)
        Adds an observation data line.
        Parameters:
        observation - the observation to add to the list
      • addObservation

        public void addObservation​(ObservationType type,
                                   AbsoluteDate epoch,
                                   double measurement)
        Adds an observation data line.
        Parameters:
        type - type of the observation
        epoch - the timetag
        measurement - the measurement