oldScarletToData

lsst.meas.extensions.scarlet.oldScarletToData(blend: Blend, psfCenter: tuple[int, int], xy0: Point2I)

Convert a scarlet.lite blend into a persistable data object

Note: This converts a blend from the old version of scarlet.lite, which is deprecated, to the persistable data format used in the new scarlet lite package. This is kept to compare the two scarlet versions, and can be removed once the new lsst.scarlet.lite package is used in production.

Parameters:
blend:

The blend that is being persisted.

psfCenter:

The center of the PSF.

xy0:

The lower coordinate of the entire blend.

Returns
——-
blendDataScarletBlendDataModel

The data model for a single blend.