public class TimeScalesFactory extends Object implements Serializable
This is a utility class, so its constructor is private.
TimeScales
,
LazyLoadedTimeScales
,
Serialized FormModifier and Type | Method and Description |
---|---|
static void |
addDefaultUTCTAIOffsetsLoaders()
Add the default loaders for UTC-TAI offsets history files (both IERS and USNO).
|
static void |
addUTCTAIOffsetsLoader(UTCTAIOffsetsLoader loader)
Add a loader for UTC-TAI offsets history files.
|
static void |
clearUTCTAIOffsetsLoaders()
Clear loaders for UTC-TAI offsets history files.
|
static BDTScale |
getBDT()
Get the BeiDou Navigation Satellite System time scale.
|
static GLONASSScale |
getGLONASS()
Get the GLObal NAvigation Satellite System time scale.
|
static GMSTScale |
getGMST(IERSConventions conventions,
boolean simpleEOP)
Get the Greenwich Mean Sidereal Time scale.
|
static GPSScale |
getGPS()
Get the Global Positioning System scale.
|
static GalileoScale |
getGST()
Get the Galileo System Time scale.
|
static IRNSSScale |
getIRNSS()
Get the Indian Regional Navigation Satellite System time scale.
|
static QZSSScale |
getQZSS()
Get the Quasi-Zenith Satellite System time scale.
|
static TAIScale |
getTAI()
Get the International Atomic Time scale.
|
static TCBScale |
getTCB()
Get the Barycentric Coordinate Time scale.
|
static TCGScale |
getTCG()
Get the Geocentric Coordinate Time scale.
|
static TDBScale |
getTDB()
Get the Barycentric Dynamic Time scale.
|
static LazyLoadedTimeScales |
getTimeScales()
Get the instance of
TimeScales that is called by all of the static methods
in this class. |
static TTScale |
getTT()
Get the Terrestrial Time scale.
|
static UT1Scale |
getUT1(EOPHistory history)
Get the Universal Time 1 scale.
|
static UT1Scale |
getUT1(IERSConventions conventions,
boolean simpleEOP)
Get the Universal Time 1 scale.
|
static UTCScale |
getUTC()
Get the Universal Time Coordinate scale.
|
@DefaultDataContext public static LazyLoadedTimeScales getTimeScales()
TimeScales
that is called by all of the static methods
in this class.@DefaultDataContext public static void addUTCTAIOffsetsLoader(UTCTAIOffsetsLoader loader)
loader
- custom loader to addTAIUTCDatFilesLoader
,
UTCTAIHistoryFilesLoader
,
UTCTAIBulletinAFilesLoader
,
getUTC()
,
clearUTCTAIOffsetsLoaders()
@DefaultDataContext public static void addDefaultUTCTAIOffsetsLoaders()
The default loaders are TAIUTCDatFilesLoader
that looks for
a file named tai-utc.dat
that must be in USNO format and
UTCTAIHistoryFilesLoader
that looks fir a file named
UTC-TAI.history
that must be in the IERS format. The
UTCTAIBulletinAFilesLoader
is not added by default
as it is not recommended. USNO warned us that the TAI-UTC data present
in bulletin A was for convenience only and was not reliable, there
have been errors in several bulletins regarding these data.
@DefaultDataContext public static void clearUTCTAIOffsetsLoaders()
getUTC()
,
addUTCTAIOffsetsLoader(UTCTAIOffsetsLoader)
,
addDefaultUTCTAIOffsetsLoaders()
@DefaultDataContext public static TAIScale getTAI()
@DefaultDataContext public static UTCScale getUTC()
If no UTCTAIOffsetsLoader
has been added by calling addUTCTAIOffsetsLoader
or if clearUTCTAIOffsetsLoaders
has been called afterwards,
the addDefaultUTCTAILoaders
method
will be called automatically.
addDefaultUTCTAIOffsetsLoaders()
@DefaultDataContext public static UT1Scale getUT1(IERSConventions conventions, boolean simpleEOP)
UT1 scale depends on both UTC scale and Earth Orientation Parameters,
so this method loads these data sets. See the TimeScalesFactory.getUTC()
and LazyLoadedEop.getEOPHistory(IERSConventions, boolean, TimeScales)
methods
for an explanation of how the corresponding data loaders can be configured.
conventions
- IERS conventions for which EOP parameters will provide dUT1simpleEOP
- if true, tidal effects are ignored when interpolating EOPgetUTC()
,
LazyLoadedEop.getEOPHistory(IERSConventions, boolean, TimeScales)
@DefaultDataContext public static UT1Scale getUT1(EOPHistory history)
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 UT1Scale
instance, a new
instance will be returned each time. In order to avoid wasting
memory, calling getUT1(IERSConventions, boolean)
with the single enumerate corresponding to the conventions may be
a better solution. This method is made available only for expert use.
history
- EOP parameters providing dUT1
(may be null if no correction is desired)getUT1(IERSConventions, boolean)
@DefaultDataContext public static TTScale getTT()
@DefaultDataContext public static GalileoScale getGST()
@DefaultDataContext public static GLONASSScale getGLONASS()
@DefaultDataContext public static QZSSScale getQZSS()
@DefaultDataContext public static GPSScale getGPS()
@DefaultDataContext public static TCGScale getTCG()
@DefaultDataContext public static TDBScale getTDB()
@DefaultDataContext public static TCBScale getTCB()
@DefaultDataContext public static GMSTScale getGMST(IERSConventions conventions, boolean simpleEOP)
conventions
- IERS conventions for which EOP parameters will provide dUT1simpleEOP
- if true, tidal effects are ignored when interpolating EOP@DefaultDataContext public static IRNSSScale getIRNSS()
@DefaultDataContext public static BDTScale getBDT()
Copyright © 2002-2022 CS GROUP. All rights reserved.