heyoka.eop_data#
- class heyoka.eop_data#
EOP data class.
Added in version 7.3.0.
This class is used to manage and access Earth orientation parameters data.
Note
A tutorial illustrating the use of this class is available.
Methods
__init__(self)Default constructor.
fetch_latest_celestrak([long_term])Fetch the latest CelesTrak EOP data.
Fetch the latest IERS EOP long-term data.
fetch_latest_iers_rapid([origin, filename])Fetch the latest IERS EOP rapid data.
Attributes
EOP data identifier.
EOP data table.
EOP data timestamp.
- __init__(self)#
Default constructor.
The default constructor initialises the EOP data with a builtin copy of the
finals2000A.allrapid data file from the IERS datacenter.Note that the builtin EOP data is likely to be outdated. You can use functions such as
fetch_latest_iers_rapid()to fetch up-to-date data from the internet.
- static fetch_latest_celestrak(long_term: bool = False) eop_data#
Fetch the latest CelesTrak EOP data.
Added in version 7.9.0.
This function will download from CelesTrak one of the current EOP datafiles, from which it will construct and return an
eop_datainstance.If long_term is
True, then the entire historical EOP dataset (dating back to 1962) is downloaded. Otherwise, the EOP dataset for the last 5 years is downloaded.The datasets downloaded by this function include predictions for the future. See the CelesTrak docs for information on how the datasets are constructed.
Note
This function will release the global interpreter lock (GIL) while downloading.
- Parameters:
long_term – flag to request the complete historical EOP dataset.
- Returns:
an
eop_datainstance constructed from the remote file.
- static fetch_latest_iers_long_term() eop_data#
Fetch the latest IERS EOP long-term data.
This function will download from the IERS datacenter the current EOP long-term datafile, from which it will construct and return an
eop_datainstance.The file downloaded by this function is
eopc04_20.1962-now.csv, which contains the IAU2000A EOP data from 1962 up to (roughly) the present time. Note that long-term data does not contain predictions for the future.Note
This function will release the global interpreter lock (GIL) while downloading.
- Returns:
an
eop_datainstance constructed from the remote file.
- static fetch_latest_iers_rapid(origin: str = 'usno', filename: str = 'finals2000A.all') eop_data#
Fetch the latest IERS EOP rapid data.
This function will download one the current IERS EOP rapid data files, from which it will construct and return an
eop_datainstance.origin indicates the datacenter from which the file will be downloaded, and its possible values are
"usno"(indicating the US Naval Observatory) and"iers"(indicating the IERS datacenter).The filename argument specifies which EOP data file will be downloaded. Its possible values are:
"finals2000A.all","finals2000A.daily","finals2000A.daily.extended","finals2000A.data",
for the
usnodatacenter, and"finals.all.iau2000.txt","finals.daily.iau2000.txt","finals.data.iau2000.txt",
for the
iersdatacenter. These datafiles are updated frequently and they contain predictions for the future. They differ from each other mainly in the timespans they provide data for. For instance,finals2000A.allandfinals.all.iau2000.txtcontain several decades worth of data, whilefinals2000A.dailyandfinals.daily.iau2000.txtcontain only the most recent data.Note that there is considerable overlap between the USNO and IERS data files. For instance, at any given time,
finals2000A.allandfinals.all.iau2000.txtare expected to contain exactly the same data. The ability to fetch the same data from multiple origins is provided in order to improve resilience against transient network issues.Please refer to the documentation on the USNO and IERS websites for more information about the content of these files.
Note
This function will release the global interpreter lock (GIL) while downloading.
Added in version 7.6.0: The origin function parameter.
- Parameters:
origin – the datacenter to use for the download.
filename – the file to be downloaded.
- Returns:
an
eop_datainstance constructed from the remote file.- Raises:
ValueError – if origin or filename is invalid.
- property identifier#
EOP data identifier.
A string uniquely identifying the source of EOP data.
- Return type:
- property table#
EOP data table.
This is a structured NumPy array containing the raw EOP data. The dtype of the returned array is
eop_data_row.- Return type: