StitchedCoadd#
- class lsst.cell_coadds.StitchedCoadd(cell_coadd: MultipleCellCoadd, *, bbox: Box2I | None = None)#
Bases:
StitchedImagePlanes,CommonComponentsPropertiesA lazy-evaluation coadd that stitches together images from adjacent cells.
Parameters#
- cell_coadd
MultipleCellCoadd Cell-based coadd to stitch together.
- bbox
Box2I, optional The region over which a contiguous coadd is desired. Defaults to
cell_coadd.outer_bbox.
Notes#
This class simply inserts subimages from each cell into the full image, doing so when an attribute is first accessed to avoid stitching together planes that may never be accessed.
A
StitchedCoaddcannot be serialized in FITS format directly. Instead, the recommended way is to serialize theMultipleCellCoaddinstance that was used to construct the object and reconstruct theStitchedCoaddby calling thestitchmethod on it. A less recommended way is to call theasExposuremethod to get anlsst.afw.image.Exposureobject and persist that to the disk.Attributes Summary
Stitch the aperture correction maps from the cell coadd.
The bounding box common to all image planes.
An ExposureCatalog-like object that contains the information about the
ObservationIdentifiersat any point on the coadd.Struct of image components common to all cells in a patch.
Object that defines the piecewise grid (of inner cell regions) that this object stitches together.
The names of all mask planes whose fractions were propagated in any cell.
The number of noise realizations cells are guaranteed to have.
The piecewise PSF of this image.
An ExposureCatalog-like object that contains the information about the
ObservationIdentifiersat any point on the coadd.Methods Summary
asExposure(*[, noise_index])Return an
lsst.afw.image.Exposureview of this piecewise image.set_cell_edges(*[, edge_width, edge_mask_name])Set a mask bit indicating the inner cell edges.
Attributes Documentation
- ap_corr_map#
Stitch the aperture correction maps from the cell coadd.
This converts the aperture correction maps from each cell into a single
ApCorrMapthat quacks likelsst.afw.image.ApCorrMap. The resulting object has the fields to correct as keys and aStitchedApertureCorrectionfor each field.Notes#
These cannot be attached to an
Exposureobject.
- bbox#
- ccds#
An ExposureCatalog-like object that contains the information about the
ObservationIdentifiersat any point on the coadd. It can also be used as an iterable to iterate over the unique (visit, detector) combinations.
- common#
- grid#
Object that defines the piecewise grid (of inner cell regions) that this object stitches together.
This may include cells outside the region covered by these image planes.
- mask_fraction_names#
- n_noise_realizations#
- psf#
The piecewise PSF of this image.
- visits#
An ExposureCatalog-like object that contains the information about the
ObservationIdentifiersat any point on the coadd. It can also be used as an iterable to iterate over the unique visits.
Methods Documentation
- asExposure(*, noise_index: int | None = None) ExposureF#
Return an
lsst.afw.image.Exposureview of this piecewise image.Parameters#
- noise_index
intorNone, optional If specified, return an exposure containing the specified noise realization instead of the data image.
Returns#
- exposure
lsst.afw.image.ExposureF The stitched exposure.
Notes#
The returned exposure will have its coaddInputs set. However, its internal representation is very different from those that are genuine afw objects. The records in the
ccdsandvisitstables do not contain the individual bounding boxes and WCSs. Instead, the validPolygon is already in the coadd coordinates. To query the subset of inputs, use thesubset_containing_ccdsandsubset_containing_visitsmethods on the returned exposure’sgetInfo().getCoaddInputs()object.- noise_index
- cell_coadd