IERSInfo

class IERSInfo(iers_path: str = '/home/docs/.casa/data/geodetic', load_on_creation: bool = True)[source]

Bases: object

Class to store, retrieve and process the information from the IERS geodetic tables

IERS_tables

Class attribute with the name of the relevant tables

Type:

tuple

iers_path

Path to the location of the geodetic tables

Type:

str

info

Dictionary with the information retrieved

Type:

dict

Attributes Summary

Methods Summary

date_message_type(date)

Check if and where a date falls within the time ranges covered by the IERSeop2000 table and the IERSpredict table, and return a string indicating what kind of message should be displayed about this.

get_IERS_last_entry([name])

Get the last entry in the MJD column of the specified IERS table.

get_IERS_version(IERS_tablename)

Get the VS_VERSION header of the IERSpredict table

load_info()

Get the following data from the casa geodetic tables: * IERSpredict version * IERSeop2000 version * IERSeop2000 last MJD entry * IERSeop2000 last datetime entry * IERSpredict last datetime entry

validate_date(date)

Check if a date is lower or equal than the last entry of the IERSeop2000 table.

Attributes Documentation

IERS_tables = ('IERSpredict', 'IERSeop2000')

Methods Documentation

date_message_type(date: datetime) str[source]

Check if and where a date falls within the time ranges covered by the IERSeop2000 table and the IERSpredict table, and return a string indicating what kind of message should be displayed about this. See PIPE-734 and PIPE-1231 for more information.

GOOD: Date is lower than or equal to the last entry of the IERSeop2000 table INFO: Date is greater than the last entry of the IERSeop2000 table but less than three months after that entry (the normal maximum delay between table updates,) so the predicted IERS table will be used. WARN: Date is greater than the last entry of the IERSeop2000 table + 3 months, but less than the last entry of the IERSpredict table, so WARN and use the predicted table CRITICAL: Date is greater than the last entry of the IERSpredicted table, or one or both of the IERS tables are missing, so issue a critical ALERT

get_IERS_last_entry(name: str = 'IERSeop2000') float[source]

Get the last entry in the MJD column of the specified IERS table. Defaults to IERSeop2000.

get_IERS_version(IERS_tablename: str) str[source]

Get the VS_VERSION header of the IERSpredict table

Parameters:

IERS_tablename (str) -- Name of the table to be loaded ("IERSpredict" or "IERSeop2000")

load_info()[source]

Get the following data from the casa geodetic tables: * IERSpredict version * IERSeop2000 version * IERSeop2000 last MJD entry * IERSeop2000 last datetime entry * IERSpredict last datetime entry

validate_date(date: datetime) bool[source]

Check if a date is lower or equal than the last entry of the IERSeop2000 table. The end date of the MS should be lower (see PIPE-734). If the geodetic tables could not be loaded correctly it always return False.