LSST Applications g0603fd7c41+022847dfd1,g180d380827+84552d2356,g2079a07aa2+86d27d4dc4,g2305ad1205+696e5f3872,g2bbee38e9b+047b288a59,g337abbeb29+047b288a59,g33d1c0ed96+047b288a59,g3a166c0a6a+047b288a59,g3d1719c13e+f45185db35,g3de15ee5c7+21d867f780,g487adcacf7+777bbf561e,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+248b16177b,g63cd9335cc+585e252eca,g858d7b2824+f45185db35,g88963caddf+4b08a23952,g991b906543+f45185db35,g99cad8db69+1747e75aa3,g9b9dfce982+78139cbddb,g9ddcbc5298+9a081db1e4,ga1e77700b3+a912195c07,gae0086650b+585e252eca,gb0e22166c9+60f28cb32d,gb3a676b8dc+b4feba26a1,gb4b16eec92+f82f04eb54,gba4ed39666+c2a2e4ac27,gbb8dafda3b+7cdca563f4,gc120e1dc64+1a5de9e6d7,gc28159a63d+047b288a59,gc3e9b769f7+dcad4ace9a,gcf0d15dbbd+78139cbddb,gd040fa1545+f45185db35,gdaeeff99f8+f9a426f77a,ge79ae78c31+047b288a59,w.2024.19
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, *schema, isSingleFrame=False, **kwargs) | |
run (self, sources, skyMap=None, tractInfo=None, patchInfo=None) | |
Public Attributes | |
schema | |
isSingleFrame | |
includeDeblend | |
isPatchInnerKey | |
isTractInnerKey | |
isPrimaryKey | |
isDeblendedSourceKey | |
fromBlendKey | |
isIsolatedKey | |
isDeblendedModelKey | |
Static Public Attributes | |
ConfigClass = SetPrimaryFlagsConfig | |
Protected Member Functions | |
_getPseudoSources (self, sources) | |
Static Protected Attributes | |
str | _DefaultName = "setPrimaryFlags" |
Set the ``isPrimary`` flag and either various blendedness, or patch/tract flags to a catalog (for single frame or coadd catalogs, respectively), based on other properties of the sources. Parameters ---------- schema : `lsst.afw.table.Schema` Source catalog schema to add fields to. isSingleFrame : `bool` Flag specifying if task is operating with single frame imaging. includeDeblend : `bool` Include deblend information in isPrimary and add blendedness fields? Notes ----- The tests for this task still live in ``pipe_tasks/tests/test_isPrimaryFlag.py``; see discussion on DM-42720.
Definition at line 36 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.__init__ | ( | self, | |
* | schema, | ||
isSingleFrame = False, | |||
** | kwargs ) |
Definition at line 59 of file setPrimaryFlags.py.
|
protected |
Get a flag that marks pseudo sources. Some categories of sources, for example sky objects, are not really detected sources and should not be considered primary sources. Parameters ---------- sources : `lsst.afw.table.SourceCatalog` The catalog of sources for which to identify "pseudo" (e.g. sky) objects. Returns ------- isPseudo : array-like of `bool` True for each source that is a pseudo source. Note: to remove pseudo sources use `~isPseudo`.
Definition at line 157 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.run | ( | self, | |
sources, | |||
skyMap = None, | |||
tractInfo = None, | |||
patchInfo = None ) |
Set isPrimary and related flags on sources. For coadded imaging, the `isPrimary` flag returns True when an object has no children, is in the inner region of a coadd patch, is in the inner region of a coadd trach, and is not detected in a pseudo-filter (e.g., a sky_object). For single frame imaging, the isPrimary flag returns True when a source has no children and is not a sky source. Parameters ---------- sources : `lsst.afw.table.SourceCatalog` A sourceTable. Reads in centroid fields and an nChild field. Writes is-patch-inner, is-tract-inner, and is-primary flags. skyMap : `lsst.skymap.BaseSkyMap` Sky tessellation object tractInfo : `lsst.skymap.TractInfo`, optional Tract object; required if ``self.isSingleFrame`` is False. patchInfo : `lsst.skymap.PatchInfo` Patch object; required if ``self.isSingleFrame`` is False.
Definition at line 104 of file setPrimaryFlags.py.
|
staticprotected |
Definition at line 56 of file setPrimaryFlags.py.
|
static |
Definition at line 57 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.fromBlendKey |
Definition at line 89 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.includeDeblend |
Definition at line 63 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.isDeblendedModelKey |
Definition at line 98 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.isDeblendedSourceKey |
Definition at line 85 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.isIsolatedKey |
Definition at line 93 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.isPatchInnerKey |
Definition at line 68 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.isPrimaryKey |
Definition at line 78 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.isSingleFrame |
Definition at line 62 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.isTractInnerKey |
Definition at line 72 of file setPrimaryFlags.py.
lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask.schema |
Definition at line 61 of file setPrimaryFlags.py.