Class SP3Utils


  • public class SP3Utils
    extends Object
    Constants for SP3 files.
    Since:
    12.0
    Author:
    Luc Maisonobe
    • Field Detail

      • DEFAULT_CLOCK_VALUE

        public static final double DEFAULT_CLOCK_VALUE
        Bad or absent clock values are to be set to 999999.999999.
        See Also:
        Constant Field Values
      • DEFAULT_CLOCK_RATE_VALUE

        public static final double DEFAULT_CLOCK_RATE_VALUE
        Bad or absent clock rate values are to be set to 999999.999999.
        See Also:
        Constant Field Values
      • POS_VEL_BASE_ACCURACY

        public static final double POS_VEL_BASE_ACCURACY
        Base for general position/velocity accuracy.
        See Also:
        Constant Field Values
      • POSITION_UNIT

        public static final Unit POSITION_UNIT
        Position unit.
      • POSITION_ACCURACY_UNIT

        public static final Unit POSITION_ACCURACY_UNIT
        Position accuracy unit.
      • VELOCITY_UNIT

        public static final Unit VELOCITY_UNIT
        Velocity unit.
      • VELOCITY_ACCURACY_UNIT

        public static final Unit VELOCITY_ACCURACY_UNIT
        Velocity accuracy unit.
      • CLOCK_ADDITIONAL_STATE

        public static final String CLOCK_ADDITIONAL_STATE
        Additional state name for clock.
        Since:
        12.1
        See Also:
        Constant Field Values
      • CLOCK_UNIT

        public static final Unit CLOCK_UNIT
        Clock unit.
      • CLOCK_ACCURACY_UNIT

        public static final Unit CLOCK_ACCURACY_UNIT
        Clock accuracy unit.
      • CLOCK_RATE_UNIT

        public static final Unit CLOCK_RATE_UNIT
        Clock rate unit.
      • CLOCK_RATE_ACCURACY_UNIT

        public static final Unit CLOCK_RATE_ACCURACY_UNIT
        Clock rate accuracy unit.
    • Method Detail

      • siAccuracy

        public static double siAccuracy​(Unit unit,
                                        double base,
                                        int accuracyIndex)
        Convert an accuracy to SI units.
        Parameters:
        unit - accuracy unit
        base - base
        accuracyIndex - index of accuracy
        Returns:
        accuracy in SI units
      • indexAccuracy

        public static int indexAccuracy​(Unit unit,
                                        double base,
                                        double accuracy)
        Convert an accuracy from SI units.
        Parameters:
        unit - accuracy unit
        base - base
        accuracy - in SI units
        Returns:
        accuracyIndex index of accuracy