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- psfCenteruse lsst- (x, y)convention, not the scarlet/C++- (y, x)convention.- Attributes:
- xy0tupleofint
- The lower bound of the components bounding box. 
- extenttupleofint
- The - (width, height)of the component array.
- sourcesdictofint:ScarletSourceData
- Data for the sources contained in the blend. 
- psfCentertupleofint
- The location used for the center of the PSF for the blend. 
- bandslistofstr
- 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:
- resultdict
- The object encoded as a JSON compatible dict 
 
- result
 
 - classmethod fromDict(data: dict) ScarletBlendData¶
- Reconstruct - ScarletBlendDatafrom JSON compatible dict.- Parameters:
- datadict
- Dictionary representation of the object 
 
- data
- Returns:
- resultScarletBlendData
- The reconstructed object 
 
- result