Class PythonTimeScales

    • Constructor Detail

      • PythonTimeScales

        public PythonTimeScales()
    • Method Detail

      • pythonExtension

        public void pythonExtension​(long pythonObject)
        Part of JCC Python interface to object
      • pythonExtension

        public long pythonExtension()
        Part of JCC Python interface to object
      • pythonDecRef

        public void pythonDecRef()
        Part of JCC Python interface to object
      • getTAI

        public TAIScale getTAI()
        Get the International Atomic Time scale.
        Specified by:
        getTAI in interface TimeScales
        Returns:
        International Atomic Time scale
      • getUTC

        public UTCScale getUTC()
        Get the Universal Time Coordinate scale.
        Specified by:
        getUTC in interface TimeScales
        Returns:
        Universal Time Coordinate scale
      • getUT1

        public UT1Scale getUT1​(IERSConventions conventions,
                               boolean simpleEOP)
        Get the Universal Time 1 scale.
        Specified by:
        getUT1 in interface TimeScales
        Parameters:
        conventions - IERS conventions for which EOP parameters will provide dUT1
        simpleEOP - if true, tidal effects are ignored when interpolating EOP
        Returns:
        Universal Time 1 scale
        See Also:
        getUTC()
      • getTT

        public TTScale getTT()
        Get the Terrestrial Time scale.
        Specified by:
        getTT in interface TimeScales
        Returns:
        Terrestrial Time scale
      • getGST

        public GalileoScale getGST()
        Get the Galileo System Time scale.
        Specified by:
        getGST in interface TimeScales
        Returns:
        Galileo System Time scale
      • getGLONASS

        public GLONASSScale getGLONASS()
        Get the GLObal NAvigation Satellite System time scale.
        Specified by:
        getGLONASS in interface TimeScales
        Returns:
        GLObal NAvigation Satellite System time scale
      • getQZSS

        public QZSSScale getQZSS()
        Get the Quasi-Zenith Satellite System time scale.
        Specified by:
        getQZSS in interface TimeScales
        Returns:
        Quasi-Zenith Satellite System time scale
      • getGPS

        public GPSScale getGPS()
        Get the Global Positioning System scale.
        Specified by:
        getGPS in interface TimeScales
        Returns:
        Global Positioning System scale
      • getTCG

        public TCGScale getTCG()
        Get the Geocentric Coordinate Time scale.
        Specified by:
        getTCG in interface TimeScales
        Returns:
        Geocentric Coordinate Time scale
      • getTDB

        public TDBScale getTDB()
        Get the Barycentric Dynamic Time scale.
        Specified by:
        getTDB in interface TimeScales
        Returns:
        Barycentric Dynamic Time scale
      • getTCB

        public TCBScale getTCB()
        Get the Barycentric Coordinate Time scale.
        Specified by:
        getTCB in interface TimeScales
        Returns:
        Barycentric Coordinate Time scale
      • getGMST

        public GMSTScale getGMST​(IERSConventions conventions,
                                 boolean simpleEOP)
        Get the Greenwich Mean Sidereal Time scale.
        Specified by:
        getGMST in interface TimeScales
        Parameters:
        conventions - IERS conventions for which EOP parameters will provide dUT1
        simpleEOP - if true, tidal effects are ignored when interpolating EOP
        Returns:
        Greenwich Mean Sidereal Time scale
        Since:
        7.0
      • getIRNSS

        public IRNSSScale getIRNSS()
        Get the Indian Regional Navigation Satellite System time scale.
        Specified by:
        getIRNSS in interface TimeScales
        Returns:
        Indian Regional Navigation Satellite System time scale
      • getBDT

        public BDTScale getBDT()
        Get the BeiDou Navigation Satellite System time scale.
        Specified by:
        getBDT in interface TimeScales
        Returns:
        BeiDou Navigation Satellite System time scale
      • getJulianEpoch

        public AbsoluteDate getJulianEpoch()
        Reference epoch for julian dates: -4712-01-01T12:00:00 Terrestrial Time.

        Both java.util.Date and DateComponents classes follow the astronomical conventions and consider a year 0 between years -1 and +1, hence this reference date lies in year -4712 and not in year -4713 as can be seen in other documents or programs that obey a different convention (for example the convcal utility).

        Specified by:
        getJulianEpoch in interface TimeScales
        Returns:
        Julian epoch.
      • getModifiedJulianEpoch

        public AbsoluteDate getModifiedJulianEpoch()
        Reference epoch for modified julian dates: 1858-11-17T00:00:00 Terrestrial Time.
        Specified by:
        getModifiedJulianEpoch in interface TimeScales
        Returns:
        Modified Julian Epoch
      • getFiftiesEpoch

        public AbsoluteDate getFiftiesEpoch()
        Reference epoch for 1950 dates: 1950-01-01T00:00:00 Terrestrial Time.
        Specified by:
        getFiftiesEpoch in interface TimeScales
        Returns:
        Fifties Epoch
      • getCcsdsEpoch

        public AbsoluteDate getCcsdsEpoch()
        Reference epoch for CCSDS Time Code Format (CCSDS 301.0-B-4): 1958-01-01T00:00:00 International Atomic Time (not UTC).
        Specified by:
        getCcsdsEpoch in interface TimeScales
        Returns:
        CCSDS Epoch
      • getGalileoEpoch

        public AbsoluteDate getGalileoEpoch()
        Reference epoch for Galileo System Time: 1999-08-22T00:00:00 GST.
        Specified by:
        getGalileoEpoch in interface TimeScales
        Returns:
        Galileo Epoch
      • getGpsEpoch

        public AbsoluteDate getGpsEpoch()
        Reference epoch for GPS weeks: 1980-01-06T00:00:00 GPS time.
        Specified by:
        getGpsEpoch in interface TimeScales
        Returns:
        GPS Epoch
      • getQzssEpoch

        public AbsoluteDate getQzssEpoch()
        Reference epoch for QZSS weeks: 1980-01-06T00:00:00 QZSS time.
        Specified by:
        getQzssEpoch in interface TimeScales
        Returns:
        QZSS Epoch
      • getIrnssEpoch

        public AbsoluteDate getIrnssEpoch()
        Reference epoch for IRNSS weeks: 1999-08-22T00:00:00 IRNSS time.
        Specified by:
        getIrnssEpoch in interface TimeScales
        Returns:
        IRNSS Epoch
      • getBeidouEpoch

        public AbsoluteDate getBeidouEpoch()
        Reference epoch for BeiDou weeks: 2006-01-01T00:00:00 UTC.
        Specified by:
        getBeidouEpoch in interface TimeScales
        Returns:
        Beidou Epoch
      • getGlonassEpoch

        public AbsoluteDate getGlonassEpoch()
        Reference epoch for GLONASS four-year interval number: 1996-01-01T00:00:00 GLONASS time.

        By convention, TGLONASS = UTC + 3 hours.

        Specified by:
        getGlonassEpoch in interface TimeScales
        Returns:
        GLONASS Epoch
      • getJavaEpoch

        public AbsoluteDate getJavaEpoch()
        Java Reference epoch: 1970-01-01T00:00:00 Universal Time Coordinate.

        Between 1968-02-01 and 1972-01-01, UTC-TAI = 4.213 170 0s + (MJD - 39 126) x 0.002 592s. As on 1970-01-01 MJD = 40587, UTC-TAI = 8.000082s

        Specified by:
        getJavaEpoch in interface TimeScales
        Returns:
        Java Epoch
      • getPastInfinity

        public AbsoluteDate getPastInfinity()
        Dummy date at infinity in the past direction.
        Specified by:
        getPastInfinity in interface TimeScales
        Returns:
        the earliest date.
      • createBesselianEpoch

        public AbsoluteDate createBesselianEpoch​(double besselianEpoch)
        Build an instance corresponding to a Besselian Epoch (BE).

        According to Lieske paper: Precession Matrix Based on IAU (1976) System of Astronomical Constants, Astronomy and Astrophysics, vol. 73, no. 3, Mar. 1979, p. 282-284, Besselian Epoch is related to Julian Ephemeris Date as:

         BE = 1900.0 + (JED - 2415020.31352) / 365.242198781
         

        This method reverts the formula above and computes an AbsoluteDate from the Besselian Epoch.

        Specified by:
        createBesselianEpoch in interface TimeScales
        Parameters:
        besselianEpoch - Besselian epoch, like 1950 for defining the classical reference B1950.0
        Returns:
        a new instant
        See Also:
        createJulianEpoch(double)