update_bulletins#

spacekernel.iers.update_bulletins() None#

Refresh both IERS Bulletin A and C datasets, and record the update time.

This function will:
  1. Invoke BulletinA.update() to download, parse, and cache Bulletin A.

  2. Invoke BulletinC.update() to download, parse, and cache Bulletin C.

  3. Write a JSON file at latest_update_path with the UTC timestamp indicating when the update completed.

The JSON file has the form:

{
    "latest_update": "YYYY-MM-DDTHH:MM:SS.ssssss"
}
Raises:
requests.HTTPError

If either bulletin download fails.

IOError

If writing to latest_update_path fails.