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
, andpsfCenter
use lsst(x, y)
convention, not the scarlet/C++(y, x)
convention.- Attributes:
- xy0
tuple
ofint
The lower bound of the components bounding box.
- extent
tuple
ofint
The
(width, height)
of the component array.- sources
dict
ofint
:ScarletSourceData
Data for the sources contained in the blend.
- psfCenter
tuple
ofint
The location used for the center of the PSF for the blend.
- bands
list
ofstr
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
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
- result
- classmethod fromDict(data: dict) ScarletBlendData ¶
Reconstruct
ScarletBlendData
from JSON compatible dict.- Parameters:
- data
dict
Dictionary representation of the object
- data
- Returns:
- result
ScarletBlendData
The reconstructed object
- result