|
lsst.obs.base
18.1.0-21-gde80ed3+6
|
Public Member Functions | |
| def | __init__ (self, log=None) |
| def | __call__ (self, md, exposureId=None) |
Static Public Member Functions | |
| def | observationInfo2visitInfo (obsInfo, log=None) |
Public Attributes | |
| log | |
Static Public Attributes | |
| metadataTranslator = None | |
Base class functor to make a VisitInfo from the FITS header of a
raw image using `~astro_metadata_translator.ObservationInfo` translators.
Subclasses can be used if a specific
`~astro_metadata_translator.MetadataTranslator` translator should be used.
The design philosophy is to make a best effort and log warnings of
problems, rather than raising exceptions, in order to extract as much
VisitInfo information as possible from a messy FITS header without the
user needing to add a lot of error handling.
Parameters
----------
log : `lsst.log.Log` or None
Logger to use for messages.
(None to use ``Log.getLogger("MakeRawVisitInfoViaObsInfo")``).
Definition at line 46 of file makeRawVisitInfoViaObsInfo.py.
| def lsst.obs.base.makeRawVisitInfoViaObsInfo.MakeRawVisitInfoViaObsInfo.__init__ | ( | self, | |
log = None |
|||
| ) |
Definition at line 69 of file makeRawVisitInfoViaObsInfo.py.
| def lsst.obs.base.makeRawVisitInfoViaObsInfo.MakeRawVisitInfoViaObsInfo.__call__ | ( | self, | |
| md, | |||
exposureId = None |
|||
| ) |
Construct a VisitInfo and strip associated data from the metadata.
Parameters
----------
md : `lsst.daf.base.PropertyList` or `lsst.daf.base.PropertySet`
Metadata to pull from.
Items that are used are stripped from the metadata.
exposureId : `int`, optional
Ignored. Here for compatibility with `MakeRawVisitInfo`.
Returns
-------
visitInfo : `lsst.afw.image.VisitInfo`
`~lsst.afw.image.VisitInfo` derived from the header using
a `~astro_metadata_translator.MetadataTranslator`.
Definition at line 74 of file makeRawVisitInfoViaObsInfo.py.
|
static |
Construct a `~lsst.afw.image.VisitInfo` from an
`~astro_metadata_translator.ObservationInfo`
Parameters
----------
obsInfo : `astro_metadata_translator.ObservationInfo`
Information gathered from the observation metadata.
log : `logging.Logger` or `lsst.log.Log`, optional
Logger to use for logging informational messages.
If `None` logging will be disabled.
Returns
-------
visitInfo : `lsst.afw.image.VisitInfo`
`~lsst.afw.image.VisitInfo` derived from the supplied
`~astro_metadata_translator.ObservationInfo`.
Definition at line 101 of file makeRawVisitInfoViaObsInfo.py.
| lsst.obs.base.makeRawVisitInfoViaObsInfo.MakeRawVisitInfoViaObsInfo.log |
Definition at line 72 of file makeRawVisitInfoViaObsInfo.py.
|
static |
Definition at line 65 of file makeRawVisitInfoViaObsInfo.py.
1.8.13