ExampleSigmaClippedStatsTask#
- class lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask(*args, **kwargs)#
Bases:
TaskExample 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).
Methods Summary
run(maskedImage)Compute and return statistics for a masked image.
Methods Documentation
- run(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:
meanMean of image plane (
float).meanErrUncertainty in mean (
float).stdDevStandard deviation of image plane (
float).stdDevErrUncertainty in standard deviation (
float).
- maskedImage