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:
- hdrlsst.daf.base.PropertyListorcollections.abc.MutableMapping
- The FITS header to modify. Assumes - HIERARCHwill be handled implicitly by the writer.
- reflsst.daf.butler.DatasetRef
- The butler dataset associated with this FITS file. 
- provenancelsst.daf.butler.DatasetProvenanceorNone, optional
- Provenance for this dataset. 
- allow_long_headersbool, optional
- If - Trueit is assumed that there is no limit to the length of the values being stored. If- False, assumes that FITS header cards must be kept within 80 characters including quoting,- HIERARCH, and- =.
 
- hdr