as_masked_image#
- lsst.analysis.ap.as_masked_image(image, *, image_type='science')#
Return the pixels of an AP image as an
lsst.images.MaskedImage.Use this for images without the detector, PSF and other components a
VisitImageneeds, such as a post-ISR image.Parameters#
- image
lsst.images.MaskedImageorlsst.afw.image.Exposure Image to convert. An
lsst.images.MaskedImage(which includesVisitImage) is returned unchanged.- image_type{“science”, “template”, “difference”}, optional
Role of a legacy image, which sets the mask planes it keeps.
Returns#
- image
lsst.images.MaskedImage The image, mask and variance, with a sky projection if
imagehas a WCS. A converted image shares its image and variance pixels withimage.
Raises#
- TypeError
Raised if
imageis neither anlsst.images.MaskedImagenor anlsst.afw.image.Exposure.
- image