Class ObservationsBlock
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObservation(Observation observation) Adds an observation data line.voidaddObservation(ObservationType type, AbsoluteDate epoch, double measurement) Adds an observation data line.Get the list of Observations data lines.voidsetObservations(List<Observation> observations) Set the list of Observations Data Lines.Methods inherited from class org.orekit.files.ccsds.section.CommentsContainer
acceptComments, addComment, checkAllowed, checkNotNaN, checkNotNegative, checkNotNull, getComments, refuseFurtherComments, setComments, validate
-
Constructor Details
-
ObservationsBlock
public ObservationsBlock()ObservationsBlock constructor.
-
-
Method Details
-
getObservations
Get the list of Observations data lines.- Returns:
- a reference to the internal list of Observations data lines
-
setObservations
Set the list of Observations Data Lines.- Parameters:
observations- the list of Observations Data Lines to set
-
addObservation
Adds an observation data line.- Parameters:
observation- the observation to add to the list
-
addObservation
Adds an observation data line.- Parameters:
type- type of the observationepoch- the timetagmeasurement- the measurement
-