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:
objectData for an entire blend.
Note that
xy0,extent, andpsfCenteruse lsst(x, y)convention, not the scarlet/C++(y, x)convention.- Attributes:
- xy0
tupleofint The lower bound of the components bounding box.
- extent
tupleofint The
(width, height)of the component array.- sources
dictofint:ScarletSourceData Data for the sources contained in the blend.
- psfCenter
tupleofint The location used for the center of the PSF for the blend.
- bands
listofstr The names of the bands. The order of the bands must be the same as the order of the multiband model arrays, and SEDs.
- xy0
Methods Summary
asDict()Return the object encoded into a dict for JSON serialization
fromDict(data)Reconstruct
ScarletBlendDatafrom 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
- result
- classmethod fromDict(data: dict) ScarletBlendData¶
Reconstruct
ScarletBlendDatafrom JSON compatible dict.- Parameters:
- data
dict Dictionary representation of the object
- data
- Returns:
- result
ScarletBlendData The reconstructed object
- result