Add isPrimaryKey to a given schema.
Parameters
----------
schema : `lsst.afw.table.Schema`
The input schema.
isSingleFrame : `bool`
Flag specifying if task is operating with single frame imaging.
kwargs :
Keyword arguments passed to the task.
Definition at line 36 of file setPrimaryFlags.py.
def lsst.pipe.tasks.setPrimaryFlags.SetPrimaryFlagsTask.run |
( |
|
self, |
|
|
|
sources, |
|
|
|
skyMap = None , |
|
|
|
tractInfo = None , |
|
|
|
patchInfo = None , |
|
|
|
includeDeblend = True |
|
) |
| |
Set is-patch-inner, is-tract-inner and is-primary flags on sources.
For coadded imaging, the is-primary 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 is-primary 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`
Tract object
patchInfo : `lsst.skymap.PatchInfo`
Patch object
includeDeblend : `bool`
Include deblend information in isPrimary?
Definition at line 74 of file setPrimaryFlags.py.