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
-
public class CartesianCovariance extends CommentsContainer implements Data
Container for OPM/OMM/OCM Cartesian covariance matrix.- Since:
- 6.1
- Author:
- sports
-
-
Constructor Summary
Constructors Constructor Description CartesianCovariance(Supplier<FrameFacade> defaultFrameSupplier)
Create an empty data set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RealMatrix
getCovarianceMatrix()
Get the Position/Velocity covariance matrix.AbsoluteDate
getEpoch()
Get matrix epoch.FrameFacade
getReferenceFrame()
Get the reference frame.void
setCovarianceMatrixEntry(int j, int k, double entry)
Set an entry in the Position/Velocity covariance matrix.void
setEpoch(AbsoluteDate epoch)
Set matrix epoch.void
setReferenceFrame(FrameFacade referenceFrame)
Set the reference frame in which data are given.void
validate(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
-
-
-
-
Constructor Detail
-
CartesianCovariance
public CartesianCovariance(Supplier<FrameFacade> defaultFrameSupplier)
Create an empty data set.- Parameters:
defaultFrameSupplier
- supplier for default reference frame if no frame is specified in the CCSDS message
-
-
Method Detail
-
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:
validate
in interfaceSection
- Overrides:
validate
in classCommentsContainer
- Parameters:
version
- format version
-
getEpoch
public AbsoluteDate getEpoch()
Get matrix epoch.- Returns:
- matrix epoch
-
setEpoch
public void setEpoch(AbsoluteDate epoch)
Set matrix epoch.- Parameters:
epoch
- matrix epoch
-
getReferenceFrame
public FrameFacade getReferenceFrame()
Get the reference frame.- Returns:
- The reference frame specified by the
COV_REF_FRAME
keyword or inherited from metadata
-
setReferenceFrame
public void setReferenceFrame(FrameFacade referenceFrame)
Set the reference frame in which data are given.- Parameters:
referenceFrame
- the reference frame to be set
-
getCovarianceMatrix
public RealMatrix 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
-
-