pint.observatory.topo_obs

Ground-based fixed observatories read in from observatories.json.

These observatories have fixed positions that affect the data they record, but they also often have their own reference clocks, and therefore we need to correct for any drift in those clocks.

These observatories are registered when this file is imported. The standard behavior is given by pint.observatory.topo_obs.load_observatories_from_usual_locations(), which:

  • Clears any existing observatories from the registry

  • Loads the standard observatories

  • Loads any observatories present in $PINT_OBS_OVERRIDE, overwriting those already present

This is run on import. Otherwise it only needs to be run if pint.observatory.Observatory.clear_registry() is run.

Functions

export_all_clock_files(directory)

Export all clock files PINT is using.

load_observatories([filename, overwrite])

Load observatory definitions from JSON and create pint.observatory.topo_obs.TopoObs objects, registering them

load_observatories_from_usual_locations([clear])

Load observatories from the default JSON file as well as $PINT_OBS_OVERRIDE, optionally clearing the registry

Classes

TopoObs(name, *[, fullname, tempo_code, ...])

Observatories that are at a fixed location on the surface of the Earth.