lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.peekExposure.PeekDonutTask Class Reference
Inheritance diagram for lsst.pipe.tasks.peekExposure.PeekDonutTask:

Public Member Functions

 __init__ (self, Any config, **Any kwargs)
pipeBase.Struct run (self, afwImage.Exposure exposure, float donutDiameter, int|None binSize=None)
np.ndarray getGoodSources (self, afwTable.SourceCatalog binnedSourceCat)

Static Public Attributes

 ConfigClass = PeekDonutTaskConfig

Static Protected Attributes

PeekTask _DefaultName = "peekDonut"

Detailed Description

Peek at a donut exposure.

The main modification for donuts is to aggressively bin the image to reduce
the size of sources (donuts) from ~100 pixels or more to ~10 pixels.  This
greatly increases the speed and detection capabilities of PeekTask with
little loss of accuracy for centroids.

Member Function Documentation

◆ getGoodSources()

np.ndarray lsst.pipe.tasks.peekExposure.PeekDonutTask.getGoodSources ( self,
afwTable.SourceCatalog binnedSourceCat )
Perform any filtering on the source catalog.

Parameters
----------
binnedSourceCat : `lsst.afw.table.SourceCatalog`
    Source catalog from the binned exposure.

Returns
-------
goodSourceMask : `numpy.ndarray`
    Boolean array indicating which sources are good.

◆ run()

pipeBase.Struct lsst.pipe.tasks.peekExposure.PeekDonutTask.run ( self,
afwImage.Exposure exposure,
float donutDiameter,
int | None binSize = None )
Peek at donut exposure.

Parameters
----------
exposure : `lsst.afw.image.Exposure`
    Exposure at which to peek.
donutDiameter : `float`
    Donut diameter in pixels.
binSize : `int`, optional
    Binning factor for exposure.  Default is None, which will use the
    resolution config value to determine the binSize.

Returns
-------
result : `pipeBase.Struct`
    Result of donut peeking.
    Struct containing:
        - mode : `str`
            Peek mode that was run.
        - binSize : `int`
            Binning factor used.
        - binnedSourceCat : `lsst.afw.table.SourceCatalog`
            Source catalog from the binned exposure.

The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/peekExposure.py