ComponentCube¶
- class lsst.meas.extensions.scarlet.ComponentCube(model, center, bbox, model_bbox)¶
Bases:
object
Dummy component for scarlet main sources.
This is duck-typed to a
scarlet.lite.LiteComponent
in order to generate a model from the component.If scarlet lite ever implements a component as a data cube, this class can be removed.
Methods Summary
get_model
([bbox])Generate the model for the source
Methods Documentation
- get_model(bbox=None)¶
Generate the model for the source
- Parameters:
- bbox
scarlet.bbox.Box
The bounding box to insert the model into. If
bbox
isNone
then the model is returned in its own bounding box.
- bbox
- Returns:
- model
numpy.ndarray
The model as a 3D
(band, y, x)
array.
- model