LsstCamMakeRawVisitInfo¶
-
class
lsst.obs.lsst.
LsstCamMakeRawVisitInfo
(log=None, doStripHeader=False)¶ Bases:
lsst.obs.base.MakeRawVisitInfoViaObsInfo
Make a VisitInfo from the FITS header of a raw image.
Attributes Summary
metadataTranslator
Methods Summary
__call__
(md[, exposureId])Construct a VisitInfo and strip associated data from the metadata. observationInfo2visitInfo
(obsInfo[, log])Construct a VisitInfo
from anObservationInfo
Attributes Documentation
-
metadataTranslator
= None¶
Methods Documentation
-
__call__
(md, exposureId=None)¶ Construct a VisitInfo and strip associated data from the metadata.
Parameters: - md :
lsst.daf.base.PropertyList
orlsst.daf.base.PropertySet
Metadata to pull from. May be modified if
stripHeader
isTrue
.- exposureId :
int
, optional Ignored. Here for compatibility with
MakeRawVisitInfo
.
Returns: - visitInfo :
lsst.afw.image.VisitInfo
VisitInfo
derived from the header using aMetadataTranslator
.
- md :
-
static
observationInfo2visitInfo
(obsInfo, log=None)¶ Construct a
VisitInfo
from anObservationInfo
Parameters: - obsInfo :
astro_metadata_translator.ObservationInfo
Information gathered from the observation metadata.
- log :
logging.Logger
orlsst.log.Log
, optional Logger to use for logging informational messages. If
None
logging will be disabled.
Returns: - visitInfo :
lsst.afw.image.VisitInfo
VisitInfo
derived from the suppliedObservationInfo
.
- obsInfo :
-