cutout#
- lsst.analysis.ap.cutout(image, center, size)#
Copy a square of pixels centered on a sky position.
Parameters#
- image
lsst.images.MaskedImage Image to cut out of.
- center
astropy.coordinates.SkyCoordorlsst.geom.SpherePoint Sky position to center the cutout on.
- size
int Width and height of the cutout, in pixels.
Returns#
- cutout
lsst.images.Image Copy of the image plane in the square; pixels outside
imageare NaN. The square is placed as bylsst.afw.image.Exposure.getCutout.
Raises#
- lsst.images.NoOverlapError
Raised if the square does not overlap
image.
- image