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:
- hdr
lsst.daf.base.PropertyListorcollections.abc.MutableMapping The FITS header to modify. Assumes
HIERARCHwill be handled implicitly by the writer.- ref
lsst.daf.butler.DatasetRef The butler dataset associated with this FITS file.
- provenance
lsst.daf.butler.DatasetProvenanceorNone, optional Provenance for this dataset.
- hdr