scarletToData

lsst.meas.extensions.scarlet.scarletToData(blend, psfCenter, xy0, bands)

Convert a scarlet blend into a persistable data object

Parameters:
blendscarlet.Blend

The blend that is being persisted.

psfCentertuple of int

The center of the PSF.

xy0tuple of int

The lower coordinate of the entire blend.

bandstuple[str]

The bands that were deblended. This ignores bands that could not be deblended because the observed PSF could not be modeled.

Returns:
blendDataScarletBlendDataModel

The data model for a single blend.