LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Classes | |
class | SetPrimaryFlagsConfig |
class | SetPrimaryFlagsTask |
Functions | |
def | getPatchInner (sources, patchInfo) |
def | getTractInner (sources, tractInfo, skyMap) |
def | getPseudoSources (sources, pseudoFilterList, schema, log) |
def | getDeblendPrimaryFlags (sources) |
def lsst.pipe.tasks.setPrimaryFlags.getDeblendPrimaryFlags | ( | sources | ) |
Get flags generated by the deblender scarlet is different than meas_deblender in that it is not (necessarily) flux conserving. For consistency in scarlet, all of the parents with only a single child (isolated sources) need to be deblended. This creates a question: which type of isolated source should we make measurements on, the undeblended "parent" or the deblended child? For that reason we distinguish between a DeblendedSource, which is a source that has no children and uses the isolated parents, and a DeblendedModelSource, which uses the scarlet models for both isolated and blended sources. In the case of meas_deblender, DeblendedModelSource is `None` because it is not contained in the output catalog. Parameters ---------- sources : `lsst.afw.table.SourceCatalog` A sourceCatalog that has already been deblended using either meas_extensions_scarlet or meas_deblender. Returns ------- fromBlend : array-like of `bool` True for each source modeled by the deblender from a `Peak` in a parent footprint that contained at least one other `Peak`. While these models can be approximated as isolated, and measurements are made on them as if that's the case, we know deblending to introduce biases in the shape and centroid of objects and it is important to know that the sources that these models are based on are all bleneded in the true image. isIsolated : array-like of `bool` True for isolated sources, regardless of whether or not they were modeled by the deblender. isDeblendedSource : array-like of `bool` True for each source that is a "DeblendedSource" as defined above. isDeblendedModelSource : array-like of `bool` True for each source that is a "DeblendedSourceModel" as defined above.
Definition at line 122 of file setPrimaryFlags.py.
def lsst.pipe.tasks.setPrimaryFlags.getPatchInner | ( | sources, | |
patchInfo | |||
) |
Set a flag for each source if it is in the innerBBox of a patch. Parameters ---------- sources : `lsst.afw.table.SourceCatalog` A sourceCatalog with pre-calculated centroids. patchInfo : `lsst.skymap.PatchInfo` Information about a `SkyMap` `Patch`. Returns -------- isPatchInner : array-like of `bool` `True` for each source that has a centroid in the inner region of a patch.
Definition at line 29 of file setPrimaryFlags.py.
def lsst.pipe.tasks.setPrimaryFlags.getPseudoSources | ( | sources, | |
pseudoFilterList, | |||
schema, | |||
log | |||
) |
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. pseudoFilterList : `list` of `str` Names of filters which should never be primary 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 90 of file setPrimaryFlags.py.
def lsst.pipe.tasks.setPrimaryFlags.getTractInner | ( | sources, | |
tractInfo, | |||
skyMap | |||
) |
Set a flag for each source that the skyMap includes in tractInfo. Parameters ---------- sources : `lsst.afw.table.SourceCatalog` A sourceCatalog with pre-calculated centroids. tractInfo : `lsst.skymap.TractInfo` Tract object skyMap : `lsst.skymap.BaseSkyMap` Sky tessellation object Returns ------- isTractInner : array-like of `bool` True if the skyMap.findTract method returns the same tract as tractInfo.
Definition at line 67 of file setPrimaryFlags.py.