public final class TimeScalesFactory extends Object implements Serializable
This is a utility class, so its constructor is private.
Loading of UTC-TAIL data follows PATRIUS standard way of handling data:
UTCTAILoader
.addUTCTAILoader(UTCTAILoader)
.DataProvidersManager
.clearUTCTAILoaders()
.
By default, some loaders are added in the following order:
UTCTAIHistoryFilesLoader
: UTC-TAI file in IERS format (file UTC-TAI.history). See
IERS UTC-TAI.history file for more information
getUTC()
method.
Modifier and Type | Method and Description |
---|---|
static void |
addDefaultUTCTAILoader()
Add the default loader for UTC-TAI offsets history files.
|
static void |
addUTCTAILoader(UTCTAILoader loader)
Add a loader for UTC-TAI offsets history files.
|
static void |
clearTimeScales()
Clear the time scales (UTC, UT1 and GMST).
|
static void |
clearUTCTAILoaders()
Clear loaders for UTC-TAI offsets history files.
|
static TimeScale |
get(String timescale)
Returns the
TimeScale corresponding to the string representation of time scale. |
static GMSTScale |
getGMST()
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 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 TTScale |
getTT()
Get the Terrestrial Time scale.
|
static UT1Scale |
getUT1()
Get the Universal Time 1 scale.
|
static UTCScale |
getUTC()
Get the Universal Time Coordinate scale.
|
public static void addUTCTAILoader(UTCTAILoader loader)
loader
- custom loader to addgetUTC()
,
clearUTCTAILoaders()
public static void addDefaultUTCTAILoader()
The default loader looks for a file named UTC-TAI.history
that must be in the IERS format.
getUTC()
,
clearUTCTAILoaders()
public static void clearUTCTAILoaders()
public static TAIScale getTAI()
public static UTCScale getUTC() throws PatriusException
If no UTCTAILoader
has been added by calling addUTCTAILoader
or if clearUTCTAILoaders
has been called afterwards, the
addDefaultUTCTAILoader
method will be called automatically.
PatriusException
- if some data can't be read or some file content is corruptedaddUTCTAILoader(UTCTAILoader)
,
clearUTCTAILoaders()
,
addDefaultUTCTAILoader()
public static UT1Scale getUT1() throws PatriusException
UT1 scale depends on both UTC scale and Earth Orientation Parameters, so this method loads these data sets. See
the TimeScalesFactory.getUTC()
and
EOPHistoryFactory.getEOP2000History()
methods for an explanation of how the corresponding data loaders can be
configured.
PatriusException
- if some data can't be read or some file content is corruptedgetUTC()
public static TTScale getTT()
public static GalileoScale getGST()
public static GPSScale getGPS()
public static TCGScale getTCG()
public static TDBScale getTDB()
public static TCBScale getTCB()
public static GMSTScale getGMST() throws PatriusException
PatriusException
- if some data can't be read or some file content is corruptedpublic static TimeScale get(String timescale) throws PatriusException
TimeScale
corresponding to the string representation of time scale.
For instance:
timescale
- time scale as stringTimeScale
PatriusException
- thrown if string matches no known time scalepublic static void clearTimeScales()
Copyright © 2023 CNES. All rights reserved.