add_provenance_to_fits_header

lsst.obs.base.add_provenance_to_fits_header(hdr: PropertyList | MutableMapping | None, ref: DatasetRef, provenance: DatasetProvenance | None = None) None

Modify the given header to include provenance headers.

Parameters:
hdrlsst.daf.base.PropertyList or collections.abc.MutableMapping

The FITS header to modify. Assumes HIERARCH will be handled implicitly by the writer.

reflsst.daf.butler.DatasetRef

The butler dataset associated with this FITS file.

provenancelsst.daf.butler.DatasetProvenance or None, optional

Provenance for this dataset.