Package org.orekit.files.ccsds.ndm.odm
Class CartesianCovariance
java.lang.Object
org.orekit.files.ccsds.section.CommentsContainer
org.orekit.files.ccsds.ndm.odm.CartesianCovariance
Container for OPM/OMM/OCM Cartesian covariance matrix.
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.
- Since:
- 6.1
- Author:
- sports
-
Constructor Summary
ConstructorsConstructorDescriptionCartesianCovariance(Supplier<FrameFacade> defaultFrameSupplier, CcsdsFrameMapper frameMapper) Create an empty data set. -
Method Summary
Modifier and TypeMethodDescriptionGet the Position/Velocity covariance matrix.getEpoch()Get matrix epoch.getFrame()Get the frame in which this covariance matrix is defined.Get the mapping between a CCSDS frame and aFrame.Get the reference frame.voidsetCovarianceMatrixEntry(int j, int k, double entry) Set an entry in the Position/Velocity covariance matrix.voidsetEpoch(AbsoluteDate epoch) Set matrix epoch.voidsetReferenceFrame(FrameFacade referenceFrame) Set the reference frame in which data are given.voidvalidate(double version) Check is all mandatory entries have been initialized.Methods inherited from class org.orekit.files.ccsds.section.CommentsContainer
acceptComments, addComment, checkAllowed, checkNotNaN, checkNotNegative, checkNotNull, getComments, refuseFurtherComments, setComments
-
Constructor Details
-
CartesianCovariance
public CartesianCovariance(Supplier<FrameFacade> defaultFrameSupplier, CcsdsFrameMapper frameMapper) Create an empty data set.- Parameters:
defaultFrameSupplier- supplier for default reference frame if no frame is specified in the CCSDS messageframeMapper- for creating aFrame.- Since:
- 13.1.5
-
-
Method Details
-
validate
public void validate(double version) Check is all mandatory entries have been initialized.This method should throw an exception if some mandatory entries are missing or not compatible with version number.
- Specified by:
validatein interfaceSection- Overrides:
validatein classCommentsContainer- Parameters:
version- format version
-
getEpoch
Get matrix epoch.- Returns:
- matrix epoch
-
setEpoch
Set matrix epoch.- Parameters:
epoch- matrix epoch
-
getReferenceFrame
Get the reference frame.- Returns:
- The reference frame specified by the
COV_REF_FRAMEkeyword or inherited from metadata
-
setReferenceFrame
Set the reference frame in which data are given.- Parameters:
referenceFrame- the reference frame to be set
-
getFrameMapper
Get the mapping between a CCSDS frame and aFrame.- Returns:
- the frame mapper.
- Since:
- 13.1.5
-
getFrame
Get the frame in which this covariance matrix is defined. Note that only the orientation of the returned frame is significant, the position of the returned frame is irrelevant and should be ignored.- Returns:
- Orekit frame for this covariance matrix.
- Since:
- 13.1.5
- See Also:
-
getCovarianceMatrix
Get the Position/Velocity covariance matrix.- Returns:
- the Position/Velocity covariance matrix
-
setCovarianceMatrixEntry
public void setCovarianceMatrixEntry(int j, int k, double entry) Set an entry in the Position/Velocity covariance matrix.Both m(j, k) and m(k, j) are set.
- Parameters:
j- row index (must be between 0 and 5 (inclusive)k- column index (must be between 0 and 5 (inclusive)entry- value of the matrix entry
-