|
| | selectSources (self, sourceCat, **kwargs) |
| |
| | run (self, sourceCat, sourceSelectedField=None, matches=None, exposure=None) |
| |
Source selector that returns true for all sources.
Use this when you do not want any sub-selection on your inputs.
Definition at line 856 of file sourceSelector.py.
◆ run()
| lsst.meas.algorithms.sourceSelector.BaseSourceSelectorTask.run |
( |
| self, |
|
|
| sourceCat, |
|
|
| sourceSelectedField = None, |
|
|
| matches = None, |
|
|
| exposure = None ) |
|
inherited |
Select sources and return them.
The input catalog must be contiguous in memory.
Parameters
----------
sourceCat : Various table formats
Catalog of sources to select from. Can be
`lsst.afw.table.SourceCatalog` or `pandas.DataFrame` or
`astropy.table.Table`,
sourceSelectedField : `str` or None
Name of flag field in sourceCat to set for selected sources.
If set, will modify sourceCat in-place.
matches : `list` of `lsst.afw.table.ReferenceMatch` or None
List of matches to use for source selection.
If usesMatches is set in source selector this field is required.
If not, it is ignored.
exposure : `lsst.afw.image.Exposure` or None
The exposure the catalog was built from; used for debug display.
Returns
-------
struct : `lsst.pipe.base.Struct`
The struct contains the following data:
``sourceCat``
The catalog of sources that were selected.
(may not be memory-contiguous)
(`lsst.afw.table.SourceCatalog` or `pandas.DataFrame`
or `astropy.table.Table`)
``selected``
Boolean array of sources that were selected, same length as
sourceCat.
(`numpy.ndarray` of `bool`)
Raises
------
RuntimeError
Raised if ``sourceCat`` is not contiguous.
Definition at line 72 of file sourceSelector.py.
◆ selectSources()
| lsst.meas.algorithms.sourceSelector.NullSourceSelectorTask.selectSources |
( |
| self, |
|
|
| sourceCat, |
|
|
** | matches ) |
Return a selection of sources selected by some criteria.
Parameters
----------
sourceCat : Various table formats
Catalog of sources to select from. Supports
`lsst.afw.table.SourceCatalog` or `pandas.DataFrame`
or `astropy.table.Table`
This catalog must be contiguous in memory.
matches : `list` of `lsst.afw.table.ReferenceMatch` or None
A list of lsst.afw.table.ReferenceMatch objects
exposure : `lsst.afw.image.Exposure` or None
The exposure the catalog was built from; used for debug display.
Returns
-------
struct : `lsst.pipe.base.Struct`
The struct contains the following data:
``selected``
Boolean array of sources that were selected, same length as
sourceCat.
(`numpy.ndarray` of `bool`)
Reimplemented from lsst.meas.algorithms.sourceSelector.BaseSourceSelectorTask.
Definition at line 863 of file sourceSelector.py.
◆ _DefaultName
| str lsst.meas.algorithms.sourceSelector.BaseSourceSelectorTask._DefaultName = "sourceSelector" |
|
staticprotectedinherited |
◆ ConfigClass
◆ usesMatches
| bool lsst.meas.algorithms.sourceSelector.BaseSourceSelectorTask.usesMatches = False |
|
staticinherited |
The documentation for this class was generated from the following file: