ExplodedCoadd

class lsst.cell_coadds.ExplodedCoadd(cell_coadd: MultipleCellCoadd, *, pad_psfs_with: float | None = None)

Bases: StitchedImagePlanes

A lazy-evaluation coadd that stitches together the outer regions of the cells in a MultipleCellCoadd (including multiple values for most pixels).

Parameters:
cell_coaddMultipleCellCoadd

Cell-based coadd to stitch together.

pad_psfs_withfloat or None, optional

A floating-point value to pad PSF images with so each PSF-image cell has the same dimensions as the image (outer) cell it corresponds to. If None, PSF images will not be padded and the full PSF image will generally be smaller than the exploded image it corresponds to.

Notes

An ExplodedCoadd cannot be serialized in FITS format directly. Instead, the recommended way is to serialize the MultipleCellCoadd instance that was used to construct the object and reconstruct the ExplodedCoadd by calling the explode method on it.

Attributes Summary

bbox

The bounding box common to all image planes.

grid

Object that defines the piecewise grid (of outer cell regions) that this object stitches together.

image

The data image itself.

mask

An integer bitmask.

mask_fraction_names

The names of all mask planes whose fractions were propagated in any cell.

mask_fractions

The (weighted) fraction of masked pixels that contribute to each pixel.

n_noise_realizations

The number of noise realizations cells are guaranteed to have.

noise_realizations

A sequence of noise realizations that were coadded with the same operations that were appled to the data image.

psf_grid

Object that describes the grid on which PSF model images are stitched together.

psf_image

A stitched-together image of the PSF models for each cell.

variance

Per-pixel variances for the image.

Methods Summary

asMaskedImage()

Return an lsst.afw.image.MaskedImage view of the image, mask, and variance planes.

uncache_image()

Remove any cached image plane.

uncache_mask()

Remove any cached mask plane.

uncache_mask_fraction()

Remove any cached mask_fraction planes.

uncache_noise_realizations()

Remove any cached noise_realization planes.

uncache_variance()

Remove any cached variance plane.

Attributes Documentation

bbox
grid

Object that defines the piecewise grid (of outer cell regions) that this object stitches together.

This grid always starts at (0, 0); because there is no way to align this “exploded” grid with the inner cell grid over more than one cell, no attempt is made to align it with the inner cell grid’s overall offset.

image
mask
mask_fraction_names
mask_fractions
n_noise_realizations
noise_realizations
psf_grid

Object that describes the grid on which PSF model images are stitched together.

psf_image

A stitched-together image of the PSF models for each cell.

variance

Methods Documentation

asMaskedImage() MaskedImageF

Return an lsst.afw.image.MaskedImage view of the image, mask, and variance planes.

uncache_image() None

Remove any cached image plane.

uncache_mask() None

Remove any cached mask plane.

uncache_mask_fraction() None

Remove any cached mask_fraction planes.

uncache_noise_realizations() None

Remove any cached noise_realization planes.

uncache_variance() None

Remove any cached variance plane.