lsst.meas.algorithms
22.0.1-16-g996ca242+56fec35c03
|
Public Member Functions | |
def | __init__ (self, *args, **kwargs) |
def | selectSources (self, sourceCat, matches=None, exposure=None) |
def | run (self, sourceCat, sourceSelectedField=None, matches=None, exposure=None) |
Public Attributes | |
parentKey | |
nChildKey | |
centroidXKey | |
centroidYKey | |
centroidXErrKey | |
centroidYErrKey | |
centroidFlagKey | |
edgeKey | |
interpolatedCenterKey | |
saturatedKey | |
instFluxKey | |
fluxFlagKey | |
instFluxErrKey | |
Static Public Attributes | |
ConfigClass = AstrometrySourceSelectorConfig | |
bool | usesMatches = False |
Select sources that are useful for astrometry. Good astrometry sources have high signal/noise, are non-blended, and did not have certain "bad" flags set during source extraction. They need not be PSF sources, just have reliable centroids.
Definition at line 63 of file astrometrySourceSelector.py.
def lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.__init__ | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Definition at line 72 of file astrometrySourceSelector.py.
|
inherited |
Select sources and return them. The input catalog must be contiguous in memory. Parameters: ----------- sourceCat : `lsst.afw.table.SourceCatalog` or `pandas.DataFrame` or `astropy.table.Table` Catalog of sources to select from. 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. Return ------ struct : `lsst.pipe.base.Struct` The struct contains the following data: - sourceCat : `lsst.afw.table.SourceCatalog` or `pandas.DataFrame` or `astropy.table.Table` The catalog of sources that were selected. (may not be memory-contiguous) - selected : `numpy.ndarray` of `bool`` Boolean array of sources that were selected, same length as sourceCat. Raises ------ RuntimeError Raised if ``sourceCat`` is not contiguous.
Definition at line 71 of file sourceSelector.py.
def lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.selectSources | ( | self, | |
sourceCat, | |||
matches = None , |
|||
exposure = None |
|||
) |
Return a selection of sources that are useful for astrometry. 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` or None Ignored in this SourceSelector. 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 : `array` of `bool`` Boolean array of sources that were selected, same length as sourceCat.
Reimplemented from lsst.meas.algorithms.sourceSelector.BaseSourceSelectorTask.
Definition at line 75 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.centroidFlagKey |
Definition at line 112 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.centroidXErrKey |
Definition at line 110 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.centroidXKey |
Definition at line 108 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.centroidYErrKey |
Definition at line 111 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.centroidYKey |
Definition at line 109 of file astrometrySourceSelector.py.
|
static |
Definition at line 70 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.edgeKey |
Definition at line 114 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.fluxFlagKey |
Definition at line 120 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.instFluxErrKey |
Definition at line 121 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.instFluxKey |
Definition at line 119 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.interpolatedCenterKey |
Definition at line 115 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.nChildKey |
Definition at line 107 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.parentKey |
Definition at line 106 of file astrometrySourceSelector.py.
lsst.meas.algorithms.astrometrySourceSelector.AstrometrySourceSelectorTask.saturatedKey |
Definition at line 116 of file astrometrySourceSelector.py.
|
staticinherited |
Definition at line 66 of file sourceSelector.py.