IsolatedSource#

class lsst.meas.extensions.scarlet.IsolatedSource(model: Image, peak: tuple[int, int], metadata: dict | None = None)#

Bases: SourceBase

A scarlet source representation for isolated sources.

Attributes Summary

bands

The ordered list of bands in the full source model.

bbox

The bounding box of the source in the full Blend.

component

The single component of this isolated source.

peak

The (y, x) coordinates of the peak pixel within the model.

Methods Summary

from_footprint(footprint, mCoadd, dtype[, ...])

Create an IsolatedSource from a footprint in a multiband coadd.

get_model()

Get the full 3D (band, y, x) model of the source.

to_data()

Convert to a ScarletSourceData representation.

Attributes Documentation

bands#

The ordered list of bands in the full source model.

bbox#

The bounding box of the source in the full Blend.

component#

The single component of this isolated source.

Returns#

component :

The CubeComponent representing this isolated source.

peak#

The (y, x) coordinates of the peak pixel within the model.

Methods Documentation

static from_footprint(footprint: Footprint, mCoadd: MultibandExposure, dtype: type[Any] | dtype[Any] | _SupportsDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str | None, metadata: dict | None = None) IsolatedSource#

Create an IsolatedSource from a footprint in a multiband coadd.

Parameters#

footprint :

The footprint of the source in the multiband coadd.

mCoadd :

The multiband coadd containing the source.

dtype :

The desired data type for the source model.

metadata :

Optional metadata to store with the source.

Returns#

source :

The isolated source represented as a ScarletSource.

get_model() Image#

Get the full 3D (band, y, x) model of the source.

Returns#

model :

The 3D (band, y, x) model of the source.

to_data() IsolatedSourceData#

Convert to a ScarletSourceData representation.

Returns#

source_data :

The source represented as a ScarletSourceData.