ScarletBlendData

class lsst.meas.extensions.scarlet.ScarletBlendData(xy0: tuple[int, int], extent: tuple[int, int], sources: dict[int, lsst.meas.extensions.scarlet.io.ScarletSourceData], psfCenter: tuple[float, float], bands: tuple[str])

Bases: object

Data for an entire blend.

Note that xy0, extent, and psfCenter use lsst (x, y) convention, not the scarlet/C++ (y, x) convention.

Attributes:
xy0tuple of int

The lower bound of the components bounding box.

extenttuple of int

The (width, height) of the component array.

sourcesdict of int: ScarletSourceData

Data for the sources contained in the blend.

psfCentertuple of int

The location used for the center of the PSF for the blend.

bandslist of str

The names of the bands. The order of the bands must be the same as the order of the multiband model arrays, and SEDs.

Methods Summary

asDict()

Return the object encoded into a dict for JSON serialization

fromDict(data)

Reconstruct ScarletBlendData from JSON compatible dict.

Methods Documentation

asDict() dict

Return the object encoded into a dict for JSON serialization

Returns:
resultdict

The object encoded as a JSON compatible dict

classmethod fromDict(data: dict) ScarletBlendData

Reconstruct ScarletBlendData from JSON compatible dict.

Parameters:
datadict

Dictionary representation of the object

Returns:
resultScarletBlendData

The reconstructed object