|
lsst.meas.algorithms g1d3acf762d+812787a8c8
|
Public Member Functions | |
| apply (self, catalog, exposure) | |
Static Public Attributes | |
| badMaskNames | |
| xColName | |
| yColName | |
Deselect sources that lie in a "bad" mask plane. This will select against objects whose image coordinates lie in a region with any of the mask bits in the `badMaskNames` list set. Namely used for a reference catalog for which the flag columns we would get from the measurement plugins do not exist. NOTE: In the context of reference objects, it is recommended NOT to include EDGE in the `badMaskNames` list as that will remove all the reference objects outside the detector but within the pixelMargin (thus nulling the pixelMargin padding all together!)
Definition at line 566 of file sourceSelector.py.
| lsst.meas.algorithms.sourceSelector.CullFromMaskedRegion.apply | ( | self, | |
| catalog, | |||
| exposure ) |
Apply the mask plane requirements to a catalog.
Returns whether the sources were selected.
Parameters
----------
catalog : `lsst.afw.table.SourceCatalog` or `pandas.DataFrame`
or `astropy.table.Table`
Catalog of sources to which the requirements will be applied.
exposure : `lsst.afw.image.Exposure` or None
The exposure whose mask plane is to be respected.
Returns
-------
selected : `numpy.ndarray`
Boolean array indicating for each source whether it is selected
(True means selected).
Raises
------
RuntimeError
Raised if exposure passed is `None`.
Definition at line 595 of file sourceSelector.py.
|
static |
Definition at line 579 of file sourceSelector.py.
|
static |
Definition at line 584 of file sourceSelector.py.
|
static |
Definition at line 589 of file sourceSelector.py.