ScarletFactorizedComponentData

class lsst.meas.extensions.scarlet.ScarletFactorizedComponentData(xy0: tuple[int, int], extent: tuple[int, int], center: tuple[float, float], sed: ndarray, morph: ndarray)

Bases: object

Data for a factorized component

Note that both xy0 and extent use lsst (x, y) convention, not the scarlet/C++ (y, x) convention.

Attributes:
xy0tuple of int

The lower bound of the components bounding box.

extenttuple of int

The (width, height) of the component array.

centertuple of int

The (x, y) center of the component. Note: once this is converted into a scarlet LiteBlend the source has the traditional c++ (y, x) ordering.

sednumpy.ndarray

The SED of the component.

morphnumpy.ndarray

The 2D morphology of the component.

Methods Summary

asDict()

Return the object encoded into a dict for JSON serialization

fromDict(data)

Reconstruct ScarletFactorizedComponentData from 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

classmethod fromDict(data: dict) ScarletFactorizedComponentData

Reconstruct ScarletFactorizedComponentData from JSON compatible dict.

Parameters:
datadict

Dictionary representation of the object

Returns:
resultScarletFactorizedComponentData

The reconstructed object