pint.observatory.get_observatory

pint.observatory.get_observatory(name, include_gps=None, include_bipm=None, bipm_version='BIPM2021')[source]

Convenience function to get observatory object with options.

This function will simply call the Observatory.get method but will manually modify the global observatory object after the method is called. Name-matching is case-insensitive.

If the observatory is not present in the PINT list, will fallback to astropy.

Parameters:
  • name (str) – The name of the observatory

  • include_gps (bool or None, optional) – Override UTC(GPS)->UTC clock correction.

  • include_bipm (bool or None, optional) – Override TAI TT(BIPM) clock correction.

  • bipm_version (str, optional) – Set the version of TT BIPM clock correction files.

  • note: (..) – This function can and should be expanded if more clock: file switches/options are added at a public API level.