Package org.orekit.files.sinex
Class Dcb
- java.lang.Object
-
- org.orekit.files.sinex.Dcb
-
public class Dcb extends Object
Class to store DCB Solution data parsed in the SinexLoader.This class is made to handle both station and satellite DCB data. Bias values are stored in TimeSpanMaps associated with a given pair of observation codes. Those TimeSpanMaps are stored in a Map, which associate a pair of observation code (as a HashSet of ObservationType) to a TimeSpanMap, encapsulated in a DCBCode object.
- Since:
- 12.0
- Author:
- Louis Aucouturier
-
-
Constructor Summary
Constructors Constructor Description Dcb()
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDcbLine(String obs1, String obs2, AbsoluteDate spanBegin, AbsoluteDate spanEnd, double biasValue)
Add the content of a DCB line to the DCBSatellite object.HashSet<Pair<ObservationType,ObservationType>>
getAvailableObservationPairs()
Get all available observation code pairs for the satellite.double
getDcb(String obs1, String obs2, AbsoluteDate date)
Get the value of the Differential Code Bias for a given observation pair and a at a given date.double
getDcb(ObservationType obs1, ObservationType obs2, AbsoluteDate date)
Get the value of the Differential Code Bias for a given observation pair and a at a given date.AbsoluteDate
getMaximumValidDateForObservationPair(String obs1, String obs2)
Get the maximum valid date for a given observation pair.AbsoluteDate
getMaximumValidDateForObservationPair(ObservationType obs1, ObservationType obs2)
Get the maximum valid date for a given observation pair.AbsoluteDate
getMinimumValidDateForObservationPair(String obs1, String obs2)
Get the minimum valid date for a given observation pair.AbsoluteDate
getMinimumValidDateForObservationPair(ObservationType obs1, ObservationType obs2)
Get the minimum valid date for a given observation pair.
-
-
-
Method Detail
-
addDcbLine
public void addDcbLine(String obs1, String obs2, AbsoluteDate spanBegin, AbsoluteDate spanEnd, double biasValue)
Add the content of a DCB line to the DCBSatellite object.The method check the presence of a Code pair in a map, and add values to the corresponding TimeSpanMap.
- Parameters:
obs1
- String corresponding to the first code used for the DCB computationobs2
- String corresponding to the second code used for the DCB computationspanBegin
- Absolute Date corresponding to the beginning of the validity span for this bias valuespanEnd
- Absolute Date corresponding to the end of the validity span for this bias valuebiasValue
- DCB bias value expressed in S.I. units
-
getDcb
public double getDcb(String obs1, String obs2, AbsoluteDate date)
Get the value of the Differential Code Bias for a given observation pair and a at a given date.- Parameters:
obs1
- string corresponding to the first code used for the DCB computationobs2
- string corresponding to the second code used for the DCB computationdate
- date at which to obtain the DCB- Returns:
- the value of the DCB in S.I. units
-
getDcb
public double getDcb(ObservationType obs1, ObservationType obs2, AbsoluteDate date)
Get the value of the Differential Code Bias for a given observation pair and a at a given date.- Parameters:
obs1
- first observation typeobs2
- second observation typedate
- date at which to obtain the DCB- Returns:
- the value of the DCB in S.I. units
-
getAvailableObservationPairs
public HashSet<Pair<ObservationType,ObservationType>> getAvailableObservationPairs()
Get all available observation code pairs for the satellite.- Returns:
- HashSet(HashSet(ObservationType)) Observation code pairs obtained.
-
getMinimumValidDateForObservationPair
public AbsoluteDate getMinimumValidDateForObservationPair(String obs1, String obs2)
Get the minimum valid date for a given observation pair.- Parameters:
obs1
- sString corresponding to the first code used for the DCB computationobs2
- string corresponding to the second code used for the DCB computation- Returns:
- minimum valid date for the observation pair
-
getMinimumValidDateForObservationPair
public AbsoluteDate getMinimumValidDateForObservationPair(ObservationType obs1, ObservationType obs2)
Get the minimum valid date for a given observation pair.- Parameters:
obs1
- first observation typeobs2
- second observation type- Returns:
- minimum valid date for the observation pair
-
getMaximumValidDateForObservationPair
public AbsoluteDate getMaximumValidDateForObservationPair(String obs1, String obs2)
Get the maximum valid date for a given observation pair.- Parameters:
obs1
- string corresponding to the first code used for the DCB computationobs2
- string corresponding to the second code used for the DCB computation- Returns:
- maximum valid date for the observation pair
-
getMaximumValidDateForObservationPair
public AbsoluteDate getMaximumValidDateForObservationPair(ObservationType obs1, ObservationType obs2)
Get the maximum valid date for a given observation pair.- Parameters:
obs1
- first observation typeobs2
- second observation type- Returns:
- maximum valid date for the observation pair
-
-