exposureFromImage¶
-
lsst.obs.base.exposureFromImage(image, dataId=None, mapper=None, logger=None, setVisitInfo=True, setFilter=False, setExposureId=False)¶ Generate an Exposure from an image-like object
If the image is a DecoratedImage then also set its metadata (Image and MaskedImage are missing the necessary metadata and Exposure already has those set)
Parameters: - image : Image-like object
Can be one of lsst.afw.image.DecoratedImage, Image, MaskedImage or Exposure.
- dataId :
dict, optional The data ID identifying the visit of the image.
- mapper :
lsst.obs.base.CameraMapper, optional The mapper with which to convert the image.
- logger :
lsst.log.Log, optional An existing logger to which to send output.
- setVisitInfo :
bool, optional If
True, create and attach alsst.afw.image.VisitInfoto the result. Ignored ifimageis anExposurewith an existingVisitInfo.- setFilter :
bool, optional If
True, create and attach alsst.afw.image.FilterLabelto the result. Converts non-FilterLabelinformation provided inimage. Ignored ifimageis anExposurewith existing filter information.- setExposureId :
bool, optional If
True, create and set an exposure ID fromdataID. Ignored ifimageis anExposurewith an existing ID.
Returns: lsst.afw.image.ExposureExposure containing input image.