updateBlendRecords

lsst.meas.extensions.scarlet.updateBlendRecords(blendData: ScarletBlendData, catalog: SourceCatalog, modelPsf: ndarray, imageForRedistribution: MaskedImage | Exposure | None, bandIndex: int, parentFootprint: Footprint, updateFluxColumns: bool)

Create footprints and update band-dependent columns in the catalog

Parameters:
blendData:

Persistable data for the entire blend.

catalog:

The catalog that is being updated.

modelPsf:

The 2D model of the PSF.

observedPsf:

The observed PSF model for the catalog.

imageForRedistribution:

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

bandIndex:

The number of the band to extract.

parentFootprint:

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

updateFluxColumns:

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.