pint.observatory.get_observatory
- pint.observatory.get_observatory(name, apply_gps2utc=None)[source]
Convenience function to get observatory object with options.
This function will simply call the
Observatory.get
method but will overwrite the apply_gps2utc setting, if requested. 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
apply_gps2utc (bool or None) – Whether to apply BIPM Circular T to convert UTC(USNO)_GPS to UTC. Default is None, which will use the the value set in observatories.json or True if not set there. Specifying True or False here will override.
note: (..) – This function can and should be expanded if more clock: file switches/options are added at a public API level.