add_provenance_to_fits_header¶
- lsst.obs.base.add_provenance_to_fits_header(hdr: PropertyList | MutableMapping | None, ref: DatasetRef, provenance: DatasetProvenance | None = None, allow_long_headers: bool = True) None ¶
Modify the given header to include provenance headers.
- Parameters:
- hdr
lsst.daf.base.PropertyList
orcollections.abc.MutableMapping
The FITS header to modify. Assumes
HIERARCH
will be handled implicitly by the writer.- ref
lsst.daf.butler.DatasetRef
The butler dataset associated with this FITS file.
- provenance
lsst.daf.butler.DatasetProvenance
orNone
, optional Provenance for this dataset.
- allow_long_headers
bool
, optional If
True
it is assumed that there is no limit to the length of the values being stored. IfFalse
, assumes that FITS header cards must be kept within 80 characters including quoting,HIERARCH
, and=
.
- hdr