|
lsst.meas.astrom
15.0-9-g8a634e0+1
|
Select stars based on a reference catalog. More...
Public Member Functions | |
| def | selectSources (self, sourceCat, matches=None, exposure=None) |
Static Public Attributes | |
| ConfigClass = CatalogStarSelectorConfig | |
| bool | usesMatches = True |
Select stars based on a reference catalog.
Select stars using a match list: select sources where the matching reference object is unresolved, plus the source passes the following tests:
Like all star selectors, the main method is run. Unlike most star selectors, this one requires the matches argument (the usesMatches property is true).
CatalogStarSelectorTask has a debug dictionary with the following keys:
For example, put something like:
into your debug.py file and run your task with the --debug flag.
Definition at line 85 of file catalogStarSelector.py.
| def lsst.meas.astrom.catalogStarSelector.CatalogStarSelectorTask.selectSources | ( | self, | |
| sourceCat, | |||
matches = None, |
|||
exposure = None |
|||
| ) |
Return a selection of sources based on reference catalog matches.
Parameters
----------
sourceCat : `lsst.afw.table.SourceCatalog`
Catalog of sources to select from.
This catalog must be contiguous in memory.
matches : `list` of `lsst.afw.table.ReferenceMatch`
A match vector as produced by meas_astrom; required.
exposure : `lsst.afw.image.Exposure` or None
The exposure the catalog was built from; used for debug display.
Return
------
struct : `lsst.pipe.base.Struct`
The struct contains the following data:
- selected : `numpy.ndarray` of `bool``
Boolean array of sources that were selected, same length as
sourceCat.
Definition at line 146 of file catalogStarSelector.py.
|
static |
Definition at line 143 of file catalogStarSelector.py.
|
static |
Definition at line 144 of file catalogStarSelector.py.
1.8.13