pint.observatory.compare_t2_observatories_dat

pint.observatory.compare_t2_observatories_dat(t2dir=None)[source]

Read a tempo2 observatories.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:

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

Returns:

The dictionary has two entries, under the keys “different” and “missing”; each is a list of observatories found in the TEMPO2 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