BulletinC#
- class spacekernel.iers.BulletinC#
Bases:
objectIERS Bulletin C
Singleton class providing IERS Bulletin C (Leap Second) data (TAI–UTC).
BulletinC downloads, parses, caches, and exposes IERS Bulletin C time series.
Summary#
Attributes#
Properties#
Dates#
Modified Julian Date (UTC) |
|
|
Julian Date (UTC) in SOFA internal format |
|
Julian Date (UT1) in SOFA internal format |
|
Modified Julian Date (UT1) |
Gregorian Date (UTC) |
DAT (= TAI - UTC)#
DAT = TAI - UTC (in seconds) |
Methods#
|
Download and parse the latest IERS Bulletin C (leap-second) data, then cache and load it. |
Members#
- property BulletinC.mjd_utc: ndarray[double]#
Modified Julian Date (UTC)
- property BulletinC.date_utc: ndarray['datetime64']#
Gregorian Date (UTC)
- classmethod BulletinC.update(cls) BulletinC#
Download and parse the latest IERS Bulletin C (leap-second) data, then cache and load it.
- Steps:
Fetch the raw leap-second file from
cls.url.Write the downloaded text into a temporary in-memory buffer.
Parse each non-comment line via
_stream_data_from_fileto extract fields.Construct a pandas DataFrame and write it as CSV to
cls.path.Reload
self.datafrom the updated CSV file.
- Raises:
- requests.HTTPError
If the HTTP request to download the bulletin fails.
Examples
>>> BulletinC.update() Downloading IERS bulletin C from https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat ... done!