pint.observatory.clock_file.read_tempo2_clock_file
- pint.observatory.clock_file.read_tempo2_clock_file(filename, bogus_last_correction=False, friendly_name=None, valid_beyond_ends=False)[source]
Read a TEMPO2-format clock file.
This function can also be accessed through
pint.observatory.clock_file.ClockFile.read()
with theformat="tempo2"
argument.- Parameters:
filename (str or pathlib.Path or file-like) – The location to obtain the file from.
bogus_last_correction (bool) – If True, the last correction value in the file is a placeholder, normally far in the future, and not an actual measurement.
friendly_name (str or None) – A human-readable name for this file, for use in error reporting. If not provided, will default to
filename
.valid_beyond_ends (bool) – Whether to consider the file valid past the ends of the data it contains.