Class LazyLoadedTimeScales
- java.lang.Object
-
- org.orekit.time.AbstractTimeScales
-
- org.orekit.time.LazyLoadedTimeScales
-
- All Implemented Interfaces:
TimeScales
public class LazyLoadedTimeScales extends AbstractTimeScales
An implementation ofTimeScalesthat loads auxiliary data, leap seconds and UT1-UTC, when it is first accessed. The list of loaders may be modified before the first data access.- Since:
- 10.1
- Author:
- Luc Maisonobe, Evan Ward
- See Also:
TimeScalesFactory
-
-
Constructor Summary
Constructors Constructor Description LazyLoadedTimeScales(LazyLoadedEop lazyLoadedEop)Create a new set of time scales with the given sources of auxiliary data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefaultUTCTAIOffsetsLoaders()Add the default loaders for UTC-TAI offsets history files (both IERS and USNO).voidaddUTCTAIOffsetsLoader(UTCTAIOffsetsLoader loader)Add a loader for UTC-TAI offsets history files.voidclearUTCTAIOffsetsLoaders()Clear loaders for UTC-TAI offsets history files.BDTScalegetBDT()Get the BeiDou Navigation Satellite System time scale.protected EOPHistorygetEopHistory(IERSConventions conventions, boolean simpleEOP)Get the EOP history for the given conventions.GLONASSScalegetGLONASS()Get the GLObal NAvigation Satellite System time scale.GMSTScalegetGMST(IERSConventions conventions, boolean simpleEOP)Get the Greenwich Mean Sidereal Time scale.GPSScalegetGPS()Get the Global Positioning System scale.GalileoScalegetGST()Get the Galileo System Time scale.IRNSSScalegetIRNSS()Get the Indian Regional Navigation Satellite System time scale.QZSSScalegetQZSS()Get the Quasi-Zenith Satellite System time scale.TAIScalegetTAI()Get the International Atomic Time scale.TCBScalegetTCB()Get the Barycentric Coordinate Time scale.TCGScalegetTCG()Get the Geocentric Coordinate Time scale.TDBScalegetTDB()Get the Barycentric Dynamic Time scale.TTScalegetTT()Get the Terrestrial Time scale.UT1ScalegetUT1(EOPHistory history)Get the Universal Time 1 scale.UT1ScalegetUT1(IERSConventions conventions, boolean simpleEOP)Get the Universal Time 1 scale.UTCScalegetUTC()Get the Universal Time Coordinate scale.-
Methods inherited from class org.orekit.time.AbstractTimeScales
createBesselianEpoch, createJulianEpoch, getBeidouEpoch, getCcsdsEpoch, getFiftiesEpoch, getFutureInfinity, getGalileoEpoch, getGlonassEpoch, getGpsEpoch, getIrnssEpoch, getJ2000Epoch, getJavaEpoch, getJulianEpoch, getModifiedJulianEpoch, getPastInfinity, getQzssEpoch
-
-
-
-
Constructor Detail
-
LazyLoadedTimeScales
public LazyLoadedTimeScales(LazyLoadedEop lazyLoadedEop)
Create a new set of time scales with the given sources of auxiliary data. This constructor uses the sameDataProvidersManagerfor the default EOP loaders and the default leap second loaders.- Parameters:
lazyLoadedEop- loads Earth Orientation Parameters forgetUT1(IERSConventions, boolean).
-
-
Method Detail
-
addUTCTAIOffsetsLoader
public void addUTCTAIOffsetsLoader(UTCTAIOffsetsLoader loader)
Add a loader for UTC-TAI offsets history files.- Parameters:
loader- custom loader to add- Since:
- 7.1
- See Also:
TAIUTCDatFilesLoader,UTCTAIHistoryFilesLoader,UTCTAIBulletinAFilesLoader,getUTC(),clearUTCTAIOffsetsLoaders()
-
addDefaultUTCTAIOffsetsLoaders
public void addDefaultUTCTAIOffsetsLoaders()
Add the default loaders for UTC-TAI offsets history files (both IERS and USNO).The default loaders are
TAIUTCDatFilesLoaderthat looks for a file namedtai-utc.datthat must be in USNO format,UTCTAIHistoryFilesLoaderthat looks for a file namedUTC-TAI.historythat must be in the IERS format andAGILeapSecondFilesLoaderthat looks for a files namedLeapSecond.datthat must be in AGI format. TheUTCTAIBulletinAFilesLoaderisnot 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.
-
clearUTCTAIOffsetsLoaders
public void clearUTCTAIOffsetsLoaders()
Clear loaders for UTC-TAI offsets history files.- Since:
- 7.1
- See Also:
getUTC(),addUTCTAIOffsetsLoader(UTCTAIOffsetsLoader),addDefaultUTCTAIOffsetsLoaders()
-
getTAI
public TAIScale getTAI()
Description copied from interface:TimeScalesGet the International Atomic Time scale.- Returns:
- International Atomic Time scale
-
getUTC
public UTCScale getUTC()
Description copied from interface:TimeScalesGet the Universal Time Coordinate scale.- Returns:
- Universal Time Coordinate scale
-
getUT1
public UT1Scale getUT1(IERSConventions conventions, boolean simpleEOP)
Description copied from interface:TimeScalesGet the Universal Time 1 scale.- Specified by:
getUT1in interfaceTimeScales- Overrides:
getUT1in classAbstractTimeScales- 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:
TimeScales.getUTC(),Frames.getEOPHistory(IERSConventions, boolean)
-
getEopHistory
protected EOPHistory getEopHistory(IERSConventions conventions, boolean simpleEOP)
Description copied from class:AbstractTimeScalesGet the EOP history for the given conventions.- Specified by:
getEopHistoryin classAbstractTimeScales- Parameters:
conventions- to use in computing the EOP history.simpleEOP- whether to ignore some small tidal effects.- Returns:
- EOP history.
-
getUT1
public UT1Scale getUT1(EOPHistory history)
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, callingAbstractTimeScales.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.- Overrides:
getUT1in classAbstractTimeScales- Parameters:
history- EOP parameters providing dUT1 (may be null if no correction is desired)- Returns:
- Universal Time 1 scale
- See Also:
AbstractTimeScales.getUT1(IERSConventions, boolean)
-
getTT
public TTScale getTT()
Description copied from interface:TimeScalesGet the Terrestrial Time scale.- Returns:
- Terrestrial Time scale
-
getGST
public GalileoScale getGST()
Description copied from interface:TimeScalesGet the Galileo System Time scale.- Returns:
- Galileo System Time scale
-
getGLONASS
public GLONASSScale getGLONASS()
Description copied from interface:TimeScalesGet the GLObal NAvigation Satellite System time scale.- Returns:
- GLObal NAvigation Satellite System time scale
-
getQZSS
public QZSSScale getQZSS()
Description copied from interface:TimeScalesGet the Quasi-Zenith Satellite System time scale.- Returns:
- Quasi-Zenith Satellite System time scale
-
getGPS
public GPSScale getGPS()
Description copied from interface:TimeScalesGet the Global Positioning System scale.- Returns:
- Global Positioning System scale
-
getTCG
public TCGScale getTCG()
Description copied from interface:TimeScalesGet the Geocentric Coordinate Time scale.- Returns:
- Geocentric Coordinate Time scale
-
getTDB
public TDBScale getTDB()
Description copied from interface:TimeScalesGet the Barycentric Dynamic Time scale.- Returns:
- Barycentric Dynamic Time scale
-
getTCB
public TCBScale getTCB()
Description copied from interface:TimeScalesGet the Barycentric Coordinate Time scale.- Returns:
- Barycentric Coordinate Time scale
-
getGMST
public GMSTScale getGMST(IERSConventions conventions, boolean simpleEOP)
Description copied from interface:TimeScalesGet the Greenwich Mean Sidereal Time scale.- Specified by:
getGMSTin interfaceTimeScales- Overrides:
getGMSTin classAbstractTimeScales- 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
-
getIRNSS
public IRNSSScale getIRNSS()
Description copied from interface:TimeScalesGet the Indian Regional Navigation Satellite System time scale.- Returns:
- Indian Regional Navigation Satellite System time scale
-
getBDT
public BDTScale getBDT()
Description copied from interface:TimeScalesGet the BeiDou Navigation Satellite System time scale.- Returns:
- BeiDou Navigation Satellite System time scale
-
-