ScarletBlendData

class lsst.meas.extensions.scarlet.ScarletBlendData(xy0: tuple, extent: tuple, sources: dict, psfCenter: tuple)

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:
xy0 : tuple of int

The lower bound of the components bounding box.

extent : tuple of int

The (width, height) of the component array.

sources : dict of int: ScarletSourceData

Data for the sources contained in the blend.

psfCenter : tuple of int

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

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:
result : dict

The object encoded as a JSON compatible dict

classmethod fromDict(data: dict) → lsst.meas.extensions.scarlet.io.ScarletBlendData

Reconstruct ScarletBlendData from JSON compatible dict.

Parameters:
data : dict

Dictionary representation of the object

Returns:
result : ScarletBlendData

The reconstructed object