BandSelector

class lsst.analysis.tools.actions.vector.BandSelector(*args, **kw)

Bases: VectorAction

Makes a mask for sources observed in a specified set of bands.

Attributes Summary

bands

The bands to select.

vectorKey

Key of the Vector which defines the band (str, default 'band')

Methods Summary

__call__(data, **kwargs)

Call self as a function.

getInputSchema()

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

Attributes Documentation

bands

The bands to select. None indicates no band selection applied. (List, default [])

vectorKey

Key of the Vector which defines the band (str, default 'band')

Methods Documentation

__call__(data: MutableMapping[str, ndarray[Any, dtype[_ScalarType_co]] | Scalar | HealSparseMap | Tensor | Mapping], **kwargs) ndarray[Any, dtype[_ScalarType_co]]

Call self as a function.

getInputSchema() Mapping]]]

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

Returns:
resultKeyedDataSchema

The schema this action requires to be present when calling this action, keys are unformatted.