scarletToData

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

Convert a scarlet blend into a persistable data object

Parameters:
blend : scarlet.Blend

The blend that is being persisted.

psfCenter : tuple of int

The center of the PSF.

xy0 : tuple of int

The lower coordinate of the entire blend.

Returns:
blendData : ScarletBlendDataModel

The data model for a single blend.