updateBlendRecords

lsst.meas.extensions.scarlet.updateBlendRecords(blendData, catalog, modelPsf, observedPsf, maskImage, redistributeImage, bandIndex, parentFootprint, updateFluxColumns)

Create footprints and update band-dependent columns in the catalog

Parameters:
blendDataScarletBlendData

Persistable data for the entire blend.

cataloglsst.afw.table.SourceCatalog

The catalog that is being updated.

modelPsfnumpy.ndarray

The 2D model of the PSF.

observedPsflsst.afw.detection.Psf

The observed PSF model for the catalog.

maskImagelsst.afw.image.MaskX

The masked image used to calculate the fraction of pixels in each footprint with valid data. This is only used when updateFluxColumns is True, and is required if it is.

redistributeImagelsst.afw.image.Image

The image that is the source for flux re-distribution. If redistributeImage is None then flux re-distribution is not performed.

bandIndexint

The number of the band to extract.

parentFootprintlsst.afw.Footprint

The footprint of the parent, used for masking out the model when re-distributing flux.

updateFluxColumnsbool

Whether or not to update the deblend_* columns in the catalog. This should only be true when the input catalog schema already contains those columns.