CalexpCutoutTask#
- class lsst.pipe.tasks.calexpCutout.CalexpCutoutTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#
Bases:
PipelineTaskTask for computing cutouts on a specific calexp given positions, xspans, and yspans of the stamps.
Methods Summary
run(in_table, calexp)Compute and return the cutouts.
Methods Documentation
- run(in_table, calexp)#
Compute and return the cutouts.
Parameters#
- in_table
astropy.QTable A table containing at least the following columns: position, xspan and yspan. The position should be an
astropy.SkyCoord. The xspan and yspan are the extent of the cutout in x and y in pixels.- calexp
lsst.afw.image.ExposureF The calibrated exposure from which to extract cutouts
Returns#
- output
lsst.pipe.base.Struct A struct containing:
- cutouts: an
lsst.meas.algorithms.Stampsobject that wraps a list of masked images of the cutouts and a
PropertyListcontaining the metadata to be persisted with the cutouts. The exposure metadata is preserved and, in addition, arrays holding the RA and Dec of each stamp in degrees are added to the metadata. Note: the origin of the output stamps islsst.afw.image.PARENT.
- cutouts: an
- skipped_positions: a
listoflsst.geom.SpherePointobjects for stamps that were skiped for being off the image or partially off the image
- skipped_positions: a
Raises#
- ValueError
If the input catalog doesn’t have the required columns, a ValueError is raised
- in_table