Class 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 Detail

      • Dcb

        public Dcb()
        Simple constructor.
    • 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 computation
        obs2 - String corresponding to the second code used for the DCB computation
        spanBegin - Absolute Date corresponding to the beginning of the validity span for this bias value
        spanEnd - Absolute Date corresponding to the end of the validity span for this bias value
        biasValue - 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 computation
        obs2 - string corresponding to the second code used for the DCB computation
        date - 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 type
        obs2 - second observation type
        date - 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 computation
        obs2 - 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 type
        obs2 - 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 computation
        obs2 - 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 type
        obs2 - second observation type
        Returns:
        maximum valid date for the observation pair