ScarletFactorizedComponentData¶
- class lsst.meas.extensions.scarlet.ScarletFactorizedComponentData(xy0: tuple[int, int], extent: tuple[int, int], center: tuple[float, float], sed: ndarray, morph: ndarray)¶
Bases:
objectData for a factorized component
Note that both
xy0andextentuse 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.- center
tupleofint The
(x, y)center of the component. Note: once this is converted into a scarletLiteBlendthe source has the traditional c++(y, x)ordering.- sed
numpy.ndarray The SED of the component.
- morph
numpy.ndarray The 2D morphology of the component.
- xy0
Methods Summary
asDict()Return the object encoded into a dict for JSON serialization
fromDict(data)Reconstruct
ScarletFactorizedComponentDatafrom 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) ScarletFactorizedComponentData¶
Reconstruct
ScarletFactorizedComponentDatafrom JSON compatible dict.- Parameters:
- data
dict Dictionary representation of the object
- data
- Returns:
- result
ScarletFactorizedComponentData The reconstructed object
- result