dataToScarlet

lsst.meas.extensions.scarlet.dataToScarlet(blendData, nBands=None, bandIndex=None, dtype=<class 'numpy.float32'>)

Convert the storage data model into a scarlet lite blend

Parameters:
blendDataScarletBlendData

Persistable data for the entire blend.

nBandsint

The number of bands in the image. If bandIndex is None then this parameter is ignored and the number of bands is set to 1.

bandIndexint

Index of model to extract. If bandIndex is None then the full model is extracted.

dtypenumpy.dtype

The data type of the model that is generated.

Returns:
blendscarlet.lite.LiteBlend

A scarlet blend model extracted from persisted data.