StitchedCoadd¶
- class lsst.cell_coadds.StitchedCoadd(cell_coadd: MultipleCellCoadd, *, bbox: Box2I | None = None)¶
Bases:
StitchedImagePlanes
,CommonComponentsProperties
A 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.inner_bbox
.
- cell_coadd
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
StitchedCoadd
cannot be serialized in FITS format directly. Instead, the recommended way is to serialize theMultipleCellCoadd
instance that was used to construct the object and reconstruct theStitchedCoadd
by calling thestitch
method on it. A less recommended way is to call theasExposure
method to get anlsst.afw.image.Exposure
object and persist that to the disk.Attributes Summary
String label for the filter bandpass.
The bounding box common to all image planes.
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.
Struct of unique identifiers for this coadd's patch.
The data image itself.
An integer bitmask.
The names of all mask planes whose fractions were propagated in any cell.
The (weighted) fraction of masked pixels that contribute to each pixel.
The number of noise realizations cells are guaranteed to have.
A sequence of noise realizations that were coadded with the same operations that were appled to the data image.
The piecewise PSF of this image.
Units of the coadd's data pixels.
Per-pixel variances for the image.
World Coordinate System object that maps the pixel grid to sky coordinates.
Methods Summary
Return an
lsst.afw.image.Exposure
view of this piecewise image.Return an
lsst.afw.image.MaskedImage
view of the image, mask, and variance planes.Remove any cached
image
plane.Remove any cached
mask
plane.Remove any cached
mask_fraction
planes.Remove any cached
noise_realization
planes.Remove any cached
variance
plane.Attributes Documentation
- band¶
String label for the filter bandpass.
May be
None
only for coadds that represent a combination of multiple passbands (e.g. chi^2 detection coadds), not just to indicate absence of knowledge.
- bbox¶
- 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.
- identifiers¶
Struct of unique identifiers for this coadd’s patch.
- image¶
- mask¶
- mask_fraction_names¶
- mask_fractions¶
- n_noise_realizations¶
- noise_realizations¶
- psf¶
The piecewise PSF of this image.
- units¶
Units of the coadd’s data pixels.
- variance¶
- wcs¶
World Coordinate System object that maps the pixel grid to sky coordinates.
Methods Documentation
- asExposure() ExposureF ¶
Return an
lsst.afw.image.Exposure
view of this piecewise image.
- asMaskedImage() MaskedImageF ¶
Return an
lsst.afw.image.MaskedImage
view of the image, mask, and variance planes.