public class LazyLoadedEop extends Object
EOPHistoryLoader
s on demand. Methods are synchronized so it is safe for access from
multiple threads.LazyLoadedFrames
,
FramesFactory
Constructor and Description |
---|
LazyLoadedEop(DataProvidersManager dataProvidersManager)
Create a new instance for loading EOP data from multiple
EOPHistoryLoader s. |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultEOP1980HistoryLoaders(String rapidDataColumnsSupportedNames,
String rapidDataXMLSupportedNames,
String eopC04SupportedNames,
String bulletinBSupportedNames,
String bulletinASupportedNames,
Supplier<TimeScale> utcSupplier)
Add the default loaders EOP history (IAU 1980 precession/nutation).
|
void |
addDefaultEOP2000HistoryLoaders(String rapidDataColumnsSupportedNames,
String rapidDataXMLSupportedNames,
String eopC04SupportedNames,
String bulletinBSupportedNames,
String bulletinASupportedNames,
Supplier<TimeScale> utcSupplier)
Add the default loaders for EOP history (IAU 2000/2006 precession/nutation).
|
void |
addEOPHistoryLoader(IERSConventions conventions,
EOPHistoryLoader loader)
Add a loader for Earth Orientation Parameters history.
|
void |
clearEOPHistoryLoaders()
Clear loaders for Earth Orientation Parameters history.
|
DataProvidersManager |
getDataProvidersManager()
Get the data providers manager for this instance.
|
EOPHistory |
getEOPHistory(IERSConventions conventions,
boolean simpleEOP,
TimeScales timeScales)
Get Earth Orientation Parameters history.
|
void |
setEOPContinuityThreshold(double threshold)
Set the threshold to check EOP continuity.
|
public LazyLoadedEop(DataProvidersManager dataProvidersManager)
EOPHistoryLoader
s.dataProvidersManager
- provides access to the needed EOP data files.public DataProvidersManager getDataProvidersManager()
public void addDefaultEOP1980HistoryLoaders(String rapidDataColumnsSupportedNames, String rapidDataXMLSupportedNames, String eopC04SupportedNames, String bulletinBSupportedNames, String bulletinASupportedNames, Supplier<TimeScale> utcSupplier)
The default loaders look for IERS EOP C04 and bulletins B files. They correspond to
IERS 1996
conventions.
rapidDataColumnsSupportedNames
- regular expression for supported rapid data
columns EOP files names (may be null if the
default IERS file names are used)rapidDataXMLSupportedNames
- regular expression for supported rapid data
XML EOP files names (may be null if the
default IERS file names are used)eopC04SupportedNames
- regular expression for supported EOP C04
files names (may be null if the default IERS
file names are used)bulletinBSupportedNames
- regular expression for supported bulletin B
files names (may be null if the default IERS
file names are used)bulletinASupportedNames
- regular expression for supported bulletin A
files names (may be null if the default IERS
file names are used)utcSupplier
- UTC time scale supplier. Value is not
accessed until attempting to load EOP.addEOPHistoryLoader(IERSConventions, EOPHistoryLoader)
,
clearEOPHistoryLoaders()
,
addDefaultEOP2000HistoryLoaders(String, String, String, String, String, Supplier)
public void addDefaultEOP2000HistoryLoaders(String rapidDataColumnsSupportedNames, String rapidDataXMLSupportedNames, String eopC04SupportedNames, String bulletinBSupportedNames, String bulletinASupportedNames, Supplier<TimeScale> utcSupplier)
The default loaders look for IERS EOP C04 and bulletins B files. They correspond to
both IERS 2003
and IERS 2010
conventions.
rapidDataColumnsSupportedNames
- regular expression for supported rapid data
columns EOP files names (may be null if the
default IERS file names are used)rapidDataXMLSupportedNames
- regular expression for supported rapid data
XML EOP files names (may be null if the
default IERS file names are used)eopC04SupportedNames
- regular expression for supported EOP C04
files names (may be null if the default IERS
file names are used)bulletinBSupportedNames
- regular expression for supported bulletin B
files names (may be null if the default IERS
file names are used)bulletinASupportedNames
- regular expression for supported bulletin A
files names (may be null if the default IERS
file names are used)utcSupplier
- UTC time scale supplier. Value is not
accessed until attempting to load EOP.addEOPHistoryLoader(IERSConventions, EOPHistoryLoader)
,
clearEOPHistoryLoaders()
,
addDefaultEOP1980HistoryLoaders(String, String, String, String, String, Supplier)
public void addEOPHistoryLoader(IERSConventions conventions, EOPHistoryLoader loader)
conventions
- IERS conventions to which EOP history appliesloader
- custom loader to add for the EOP historyaddDefaultEOP1980HistoryLoaders(String, String, String, String, String, Supplier)
,
clearEOPHistoryLoaders()
public void clearEOPHistoryLoaders()
public void setEOPContinuityThreshold(double threshold)
The default threshold (used if this method is never called) is 5 Julian days. If after loading EOP entries some holes between entries exceed this threshold, an exception will be triggered.
One case when calling this method is really useful is for applications that use a single Bulletin A, as these bulletins have a roughly one month wide hole for the first bulletin of each month, which contains older final data in addition to the rapid data and the predicted data.
threshold
- threshold to use for checking EOP continuity (in seconds)public EOPHistory getEOPHistory(IERSConventions conventions, boolean simpleEOP, TimeScales timeScales)
If no EOPHistoryLoader
has been added by calling addEOPHistoryLoader
or if
clearEOPHistoryLoaders
has been called
afterwards, the addDefaultEOP1980HistoryLoaders(String, String, String,
String, String, Supplier)
and addDefaultEOP2000HistoryLoaders(String,
String, String, String, String, Supplier)
methods will be called automatically
with supported file names parameters all set to null, in order to get the default
loaders configuration.
conventions
- conventions for which EOP history is requestedsimpleEOP
- if true, tidal effects are ignored when interpolating EOPtimeScales
- to use when loading EOP and computing corrections.Copyright © 2002-2020 CS GROUP. All rights reserved.