public class TimeScalesFactory extends Object implements Serializable
This is a utility class, so its constructor is private.
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 |
clearUTCTAILoaders()
Clear loaders for UTC-TAI offsets history files.
|
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 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(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.
|
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.
public static void clearUTCTAILoaders()
public static TAIScale getTAI()
public static UTCScale getUTC() throws OrekitException
If no UTCTAILoader
has been added by calling addUTCTAILoader
or if clearUTCTAILoaders
has been called afterwards,
the addDefaultUTCTAILoader
method
will be called automatically.
OrekitException
- if some data can't be read or some
file content is corruptedaddUTCTAILoader(UTCTAILoader)
,
clearUTCTAILoaders()
,
addDefaultUTCTAILoader()
public static UT1Scale getUT1(IERSConventions conventions, boolean simpleEOP) throws OrekitException
UT1 scale depends on both UTC scale and Earth Orientation Parameters,
so this method loads these data sets. See the TimeScalesFactory.getUTC()
and FramesFactory.getEOPHistory(IERSConventions, boolean)
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 EOPOrekitException
- if some data can't be read or some
file content is corruptedgetUTC()
,
FramesFactory.getEOPHistory(IERSConventions, boolean)
public static UT1Scale getUT1(EOPHistory history) throws OrekitException
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)OrekitException
- if some data can't be read or some
file content is corruptedgetUT1(IERSConventions, boolean)
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(IERSConventions conventions, boolean simpleEOP) throws OrekitException
conventions
- IERS conventions for which EOP parameters will provide dUT1simpleEOP
- if true, tidal effects are ignored when interpolating EOPOrekitException
- if some data can't be read or some
file content is corruptedCopyright © 2002-2015 CS Systèmes d'information. All rights reserved.