LSST Applications g0265f82a02+d6b5cd48b5,g02d81e74bb+7bcba2e4e8,g2079a07aa2+14824f138e,g212a7c68fe+4b38ad7149,g2305ad1205+906def1e41,g295015adf3+564da5d084,g2bbee38e9b+d6b5cd48b5,g337abbeb29+d6b5cd48b5,g3ddfee87b4+cff7e20090,g487adcacf7+50712f9db4,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+d19d1a10d7,g5a732f18d5+66d966b544,g64a986408d+7bcba2e4e8,g858d7b2824+7bcba2e4e8,g8a8a8dda67+a6fc98d2e7,g99cad8db69+808e2eeadf,g9ddcbc5298+d4bad12328,ga1e77700b3+246acaaf9c,ga8c6da7877+9e3c062e8e,gb0e22166c9+3863383f4c,gb6a65358fc+d6b5cd48b5,gb983acf43b+60bb7664b7,gba4ed39666+9664299f35,gbb8dafda3b+6623599aa9,gc07e1c2157+f6e5778202,gc120e1dc64+6e28925a4e,gc28159a63d+d6b5cd48b5,gcf0d15dbbd+cff7e20090,gdaeeff99f8+a38ce5ea23,ge6526c86ff+bcc88f9437,ge79ae78c31+d6b5cd48b5,gee10cc3b42+a6fc98d2e7,gf1cff7945b+7bcba2e4e8,v24.1.5.rc1
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
lsst.meas.algorithms.sourceSelector.RequireIsolated Class Reference
Inheritance diagram for lsst.meas.algorithms.sourceSelector.RequireIsolated:

Public Member Functions

 apply (self, catalog)
 

Static Public Attributes

 parentName
 
 nChildName
 

Detailed Description

Select sources based on whether they are isolated

This object can be used as a `lsst.pex.config.Config` for configuring
the column names to check for "parent" and "nChild" keys.

Note that this should only be run on a catalog that has had the
deblender already run (or else deblend_nChild does not exist).

Definition at line 451 of file sourceSelector.py.

Member Function Documentation

◆ apply()

lsst.meas.algorithms.sourceSelector.RequireIsolated.apply ( self,
catalog )
Apply the isolation requirements to a catalog

Returns whether the source is selected.

Parameters
----------
catalog : `lsst.afw.table.SourceCatalog`
    Catalog of sources to which the requirements will be applied.

Returns
-------
selected : `numpy.ndarray`
    Boolean array indicating for each source whether it is selected
    (True means selected).

Definition at line 465 of file sourceSelector.py.

465 def apply(self, catalog):
466 """Apply the isolation requirements to a catalog
467
468 Returns whether the source is selected.
469
470 Parameters
471 ----------
472 catalog : `lsst.afw.table.SourceCatalog`
473 Catalog of sources to which the requirements will be applied.
474
475 Returns
476 -------
477 selected : `numpy.ndarray`
478 Boolean array indicating for each source whether it is selected
479 (True means selected).
480 """
481 selected = ((catalog[self.parentName] == 0)
482 & (catalog[self.nChildName] == 0))
483 return selected
484
485

Member Data Documentation

◆ nChildName

lsst.meas.algorithms.sourceSelector.RequireIsolated.nChildName
static
Initial value:
= pexConfig.Field(dtype=str, default="deblend_nChild",
doc="Name of column for nChild")

Definition at line 462 of file sourceSelector.py.

◆ parentName

lsst.meas.algorithms.sourceSelector.RequireIsolated.parentName
static
Initial value:
= pexConfig.Field(dtype=str, default="parent",
doc="Name of column for parent")

Definition at line 460 of file sourceSelector.py.


The documentation for this class was generated from the following file: