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.
- 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
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.
String label for the filter bandpass.
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.
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.
An ExposureCatalog-like object that contains the information about the
ObservationIdentifiersat any point on the coadd.World Coordinate System object that maps the pixel grid to sky coordinates.
Methods Summary
Return an
lsst.afw.image.Exposureview of this piecewise image.Return an
lsst.afw.image.MaskedImageview of the image, mask, and variance planes.Remove any cached
imageplane.Remove any cached
maskplane.Remove any cached
mask_fractionplanes.Remove any cached
noise_realizationplanes.Remove any cached
varianceplane.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.
- band¶
String label for the filter bandpass.
May be
Noneonly for coadds that represent a combination of multiple passbands (e.g. chi^2 detection coadds), not just to indicate absence of knowledge.
- 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.
- 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¶
- 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.
- wcs¶
World Coordinate System object that maps the pixel grid to sky coordinates.
Methods Documentation
- asExposure() ExposureF¶
Return an
lsst.afw.image.Exposureview of this piecewise image.
- asMaskedImage() MaskedImageF¶
Return an
lsst.afw.image.MaskedImageview of the image, mask, and variance planes.