updateBlendRecords

lsst.meas.extensions.scarlet.updateBlendRecords(modelData: ScarletModelData, bandIndex: int, parent: SourceRecord, catalog: SourceCatalog, observation: Observation, updateFluxColumns: bool, imageForRedistribution: MaskedImage | Exposure | None = None, removeScarletData: bool = True)

Create footprints and update band-dependent columns in the catalog

Parameters:
modelData

Persistable data for the entire catalog.

bandIndex

The number of the band to extract.

parent

The parent source record.

catalog

The catalog that is being updated.

observation

The observation of the blend.

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.

imageForRedistribution

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

removeScarletData

Whether or not to remove ScarletBlendData for each blend to save memory.