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

Public Member Functions

 __init__ (self, *args, **kwargs)
 run (self, maskedImage)

Static Public Attributes

 ConfigClass = ExampleSigmaClippedStatsConfig

Protected Attributes

 _badPixelMask = afwImage.Mask.getPlaneBitMask(self.config.badMaskPlanes)
 _statsControl = afwMath.StatisticsControl()

Static Protected Attributes

str _DefaultName = "exampleSigmaClippedStats"

Detailed Description

Example task to compute sigma-clipped mean and standard deviation of an image.

This is a simple example task designed to be run as a subtask by
ExampleCmdLineTask. See also ExampleSimpleStatsTask as a variant that is
even simpler.

Notes
-----
The init method may compute anything that that does not require data.
In this case we create a statistics control object using the config
(which cannot change once the task is created).

Member Function Documentation

◆ run()

lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask.run ( self,
maskedImage )
Compute and return statistics for a masked image.

Parameters
----------
maskedImage : `lsst.afw.image.MaskedImage`
    Masked image to compute statistics on.

Returns
-------
stats : `lsst.pipe.base.Struct`
    Statistics as a struct with attributes:

    ``mean``
        Mean of image plane (`float`).
    ``meanErr``
        Uncertainty in mean (`float`).
    ``stdDev``
        Standard deviation of image plane (`float`).
    ``stdDevErr``
        Uncertainty in standard deviation (`float`).

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