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:
blendData : ScarletBlendData

Persistable data for the entire blend.

nBands : int

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.

bandIndex : int

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

dtype : numpy.dtype

The data type of the model that is generated.

Returns:
blend : scarlet.lite.LiteBlend

A scarlet blend model extracted from persisted data.