lsst.pipe.tasks g8b9e2231ea+fa07cb600e
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Attributes | Static Protected Attributes | List of all members
lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask Class Reference

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

Inheritance diagram for lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask:

Public Member Functions

def __init__ (self, *args, **kwargs)
 Construct an ExampleSigmaClippedStatsTask.
 
def run (self, maskedImage)
 Compute and return statistics for a masked image.
 

Static Public Attributes

ExampleSigmaClippedStatsConfig ConfigClass = ExampleSigmaClippedStatsConfig
 

Protected Attributes

 _badPixelMask
 
 _statsControl
 

Static Protected Attributes

str _DefaultName = "exampleSigmaClippedStats"
 

Detailed Description

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

Contents

Description

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.

The main method is run.

Configuration parameters

See ExampleSigmaClippedStatsConfig

Debug variables

This task has no debug variables.

A complete example

of using ExampleSigmaClippedStatsTask

This code is in examples/exampleStatsTask.py (this one example runs both ExampleSigmaClippedStatsTask and ExampleSimpleStatsTask), and can be run as:

examples/exampleStatsTask.py [fitsFile]

Definition at line 64 of file exampleStatsTasks.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask.__init__ (   self,
args,
**  kwargs 
)

Construct an ExampleSigmaClippedStatsTask.

    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).

Definition at line 104 of file exampleStatsTasks.py.

Member Function Documentation

◆ run()

def lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask.run (   self,
  maskedImage 
)

Compute and return statistics for a masked image.

    @param[in] maskedImage: masked image (an lsst::afw::MaskedImage)
    @return a pipeBase Struct containing:
    - mean: mean of image plane
    - meanErr: uncertainty in mean
    - stdDev: standard deviation of image plane
    - stdDevErr: uncertainty in standard deviation

Definition at line 121 of file exampleStatsTasks.py.

Member Data Documentation

◆ _badPixelMask

lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask._badPixelMask
protected

Definition at line 113 of file exampleStatsTasks.py.

◆ _DefaultName

str lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask._DefaultName = "exampleSigmaClippedStats"
staticprotected

Definition at line 102 of file exampleStatsTasks.py.

◆ _statsControl

lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask._statsControl
protected

Definition at line 115 of file exampleStatsTasks.py.

◆ ConfigClass

ExampleSigmaClippedStatsConfig lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask.ConfigClass = ExampleSigmaClippedStatsConfig
static

Definition at line 101 of file exampleStatsTasks.py.


The documentation for this class was generated from the following file: