MakeDecamRawVisitInfo

class lsst.obs.decam.MakeDecamRawVisitInfo(log=None, doStripHeader=False)

Bases: MakeRawVisitInfoViaObsInfo

Make a VisitInfo from the FITS header of a raw DECam image

Methods Summary

__call__(md)

Construct a VisitInfo and strip associated data from the metadata.

observationInfo2visitInfo(obsInfo[, log])

Construct a VisitInfo from an ObservationInfo.

Methods Documentation

__call__(md)

Construct a VisitInfo and strip associated data from the metadata.

Parameters:
mdlsst.daf.base.PropertyList or lsst.daf.base.PropertySet

Metadata to pull from. May be modified if stripHeader is True.

Returns:
visitInfolsst.afw.image.VisitInfo

VisitInfo derived from the header using a MetadataTranslator.

static observationInfo2visitInfo(obsInfo, log=None)

Construct a VisitInfo from an ObservationInfo.

Parameters:
obsInfoastro_metadata_translator.ObservationInfo

Information gathered from the observation metadata.

loglogging.Logger or lsst.log.Log, optional

Logger to use for logging informational messages. If None logging will be disabled.

Returns:
visitInfolsst.afw.image.VisitInfo

VisitInfo derived from the supplied ObservationInfo.