read_sidecar#

astro_metadata_translator.indexing.read_sidecar(path)#

Read a metadata sidecar file.

Parameters:

path (str) – Path to the sidecar file.

Returns:

info – If the sidecar file referred to ObservationInfo this will return an ObservationInfo, otherwise a dict will be returned.

Return type:

ObservationInfo or dict of [str, dict]