Class AbstractTimeScales
- All Implemented Interfaces:
TimeScales
- Direct Known Subclasses:
LazyLoadedTimeScales
TimeScales that implements some common functionality.- Since:
- 10.1
- Author:
- Evan Ward, Luc Maisonobe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBesselianEpoch(double besselianEpoch) Build an instance corresponding to a Besselian Epoch (BE).createJulianEpoch(double julianEpoch) Build an instance corresponding to a Julian Epoch (JE).Reference epoch for BeiDou weeks: 2006-01-01T00:00:00 UTC.Reference epoch for CCSDS Time Code Format (CCSDS 301.0-B-4): 1958-01-01T00:00:00 International Atomic Time (not UTC).protected abstract EOPHistorygetEopHistory(IERSConventions conventions, boolean simpleEOP) Get the EOP history for the given conventions.Reference epoch for 1950 dates: 1950-01-01T00:00:00 Terrestrial Time.Dummy date at infinity in the future direction.Reference epoch for Galileo System Time: 1999-08-22T00:00:00 GST.Reference epoch for GLONASS four-year interval number: 1996-01-01T00:00:00 GLONASS time.getGMST(IERSConventions conventions, boolean simpleEOP) Get the Greenwich Mean Sidereal Time scale.Reference epoch for GPS weeks: 1980-01-06T00:00:00 GPS time.J2000.0 Reference epoch: 2000-01-01T12:00:00 Terrestrial Time (not UTC).Java Reference epoch: 1970-01-01T00:00:00 Universal Time Coordinate.Reference epoch for julian dates: -4712-01-01T12:00:00 Terrestrial Time.Reference epoch for modified julian dates: 1858-11-17T00:00:00 Terrestrial Time.Reference epoch for NavIC weeks: 1999-08-22T00:00:00 NavIC time.Dummy date at infinity in the past direction.Reference epoch for QZSS weeks: 1980-01-06T00:00:00 QZSS time.protected UT1ScalegetUT1(EOPHistory history) Get the Universal Time 1 scale.getUT1(IERSConventions conventions, boolean simpleEOP) Get the Universal Time 1 scale.
-
Constructor Details
-
AbstractTimeScales
protected AbstractTimeScales()Simple constructor.
-
-
Method Details
-
getUT1
Get the Universal Time 1 scale.As this method allow associating any history with the time scale, it may involve large data sets. So this method does not cache the resulting
UT1Scaleinstance, a new instance will be returned each time. In order to avoid wasting memory, callinggetUT1(IERSConventions, boolean)with the single enumerate corresponding to the conventions may be a better solution. This method is made available only for expert use.- Parameters:
history- EOP parameters providing dUT1 (may be null if no correction is desired)- Returns:
- Universal Time 1 scale
- See Also:
-
getEopHistory
Get the EOP history for the given conventions.- Parameters:
conventions- to use in computing the EOP history.simpleEOP- whether to ignore some small tidal effects.- Returns:
- EOP history.
-
getUT1
Description copied from interface:TimeScalesGet the Universal Time 1 scale.- Specified by:
getUT1in interfaceTimeScales- Parameters:
conventions- IERS conventions for which EOP parameters will provide dUT1simpleEOP- if true, tidal effects are ignored when interpolating EOP- Returns:
- Universal Time 1 scale
- See Also:
-
getGMST
Description copied from interface:TimeScalesGet the Greenwich Mean Sidereal Time scale.- Specified by:
getGMSTin interfaceTimeScales- Parameters:
conventions- IERS conventions for which EOP parameters will provide dUT1simpleEOP- if true, tidal effects are ignored when interpolating EOP- Returns:
- Greenwich Mean Sidereal Time scale
-
getJulianEpoch
Description copied from interface:TimeScalesReference epoch for julian dates: -4712-01-01T12:00:00 Terrestrial Time.Both
java.util.DateandDateComponentsclasses 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 theconvcalutility).- Specified by:
getJulianEpochin interfaceTimeScales- Returns:
- Julian epoch.
-
getModifiedJulianEpoch
Description copied from interface:TimeScalesReference epoch for modified julian dates: 1858-11-17T00:00:00 Terrestrial Time.- Specified by:
getModifiedJulianEpochin interfaceTimeScales- Returns:
- Modified Julian Epoch
-
getFiftiesEpoch
Description copied from interface:TimeScalesReference epoch for 1950 dates: 1950-01-01T00:00:00 Terrestrial Time.- Specified by:
getFiftiesEpochin interfaceTimeScales- Returns:
- Fifties Epoch
-
getCcsdsEpoch
Description copied from interface:TimeScalesReference epoch for CCSDS Time Code Format (CCSDS 301.0-B-4): 1958-01-01T00:00:00 International Atomic Time (not UTC).- Specified by:
getCcsdsEpochin interfaceTimeScales- Returns:
- CCSDS Epoch
-
getGalileoEpoch
Description copied from interface:TimeScalesReference epoch for Galileo System Time: 1999-08-22T00:00:00 GST.- Specified by:
getGalileoEpochin interfaceTimeScales- Returns:
- Galileo Epoch
-
getGpsEpoch
Description copied from interface:TimeScalesReference epoch for GPS weeks: 1980-01-06T00:00:00 GPS time.- Specified by:
getGpsEpochin interfaceTimeScales- Returns:
- GPS Epoch
-
getQzssEpoch
Description copied from interface:TimeScalesReference epoch for QZSS weeks: 1980-01-06T00:00:00 QZSS time.- Specified by:
getQzssEpochin interfaceTimeScales- Returns:
- QZSS Epoch
-
getBeidouEpoch
Description copied from interface:TimeScalesReference epoch for BeiDou weeks: 2006-01-01T00:00:00 UTC.- Specified by:
getBeidouEpochin interfaceTimeScales- Returns:
- Beidou Epoch
-
getGlonassEpoch
Description copied from interface:TimeScalesReference epoch for GLONASS four-year interval number: 1996-01-01T00:00:00 GLONASS time.By convention, TGLONASS = UTC + 3 hours.
- Specified by:
getGlonassEpochin interfaceTimeScales- Returns:
- GLONASS Epoch
-
getJ2000Epoch
Description copied from interface:TimeScalesJ2000.0 Reference epoch: 2000-01-01T12:00:00 Terrestrial Time (not UTC).- Specified by:
getJ2000Epochin interfaceTimeScales- Returns:
- J2000 Epoch
- See Also:
-
getJavaEpoch
Description copied from interface:TimeScalesJava 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:
getJavaEpochin interfaceTimeScales- Returns:
- Java Epoch
-
getPastInfinity
Description copied from interface:TimeScalesDummy date at infinity in the past direction.- Specified by:
getPastInfinityin interfaceTimeScales- Returns:
- the earliest date.
-
getFutureInfinity
Description copied from interface:TimeScalesDummy date at infinity in the future direction.- Specified by:
getFutureInfinityin interfaceTimeScales- Returns:
- the latest date.
-
createJulianEpoch
Description copied from interface:TimeScalesBuild an instance corresponding to a Julian Epoch (JE).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, Julian Epoch is related to Julian Ephemeris Date as:
JE = 2000.0 + (JED - 2451545.0) / 365.25
This method reverts the formula above and computes an
AbsoluteDatefrom the Julian Epoch.- Specified by:
createJulianEpochin interfaceTimeScales- Parameters:
julianEpoch- Julian epoch, like 2000.0 for defining the classical reference J2000.0- Returns:
- a new instant
- See Also:
-
createBesselianEpoch
Description copied from interface:TimeScalesBuild 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
AbsoluteDatefrom the Besselian Epoch.- Specified by:
createBesselianEpochin interfaceTimeScales- Parameters:
besselianEpoch- Besselian epoch, like 1950 for defining the classical reference B1950.0- Returns:
- a new instant
- See Also:
-