pint.observatory.compare_tempo_obsys_dat

pint.observatory.compare_tempo_obsys_dat(tempodir=None)[source]

Read a tempo obsys.dat file and compare with PINT.

Produces a report including lines that can be added to PINT’s observatories.json to add any observatories unknown to PINT.

Parameters:

tempodir (str, optional) – Path to the TEMPO runtime dir; if not provided, look in the TEMPO environment variable.

Returns:

The dictionary has two entries, under the keys “different” and “missing”; each is a list of observatories found in the TEMPO files that disagree with what PINT expects. Each entry in these lists is again a dict, with various properties of the observatory, including a line that might be suitable for starting an entry in the PINT observatory list.

Return type:

dict