Function lsst::afw::image::makePhotoCalibFromMetadata

Function Documentation

std::shared_ptr<PhotoCalib> lsst::afw::image::makePhotoCalibFromMetadata(daf::base::PropertySet &metadata, bool strip = false)

Construct a PhotoCalib from FITS FLUXMAG0/FLUXMAG0ERR keywords.

This provides backwards compatibility with the obsoleted Calib object that PhotoCalib replaced. It should not be used outside of reading old Exposures written before PhotoCalib existed.

Return

Pointer to the constructed PhotoCalib, or nullptr if FLUXMAG0 is not in the metadata.

Parameters
  • metadata: FITS header metadata containing FLUXMAG0 and FLUXMAG0ERR keys.

  • strip: Strip FLUXMAG0 and FLUXMAG0ERR from metadata?