lsst.pipe.tasks gba22ec62b9+c4b3d61057
|
Example task to compute mean and standard deviation of an image. More...
Public Member Functions | |
def | run (self, maskedImage) |
Compute and return statistics for a masked image. More... | |
Static Public Attributes | |
ConfigClass = pexConfig.Config | |
Example task to compute mean and standard deviation of an image.
Example task to compute mean and standard deviation of an image.
This was designed to be run as a subtask by ExampleCmdLineTask. It is about as simple as a task can be; it has no configuration parameters and requires no special initialization. See also ExampleSigmaClippedStatsTask as a variant that is slightly more complicated.
The main method is run.
This task has no configuration parameters.
This task has no debug variables.
This code is in examples/exampleStatsTask.py (this one example runs both ExampleSigmaClippedStatsTask and ExampleSimpleStatsTask), and can be run as:
Definition at line 145 of file exampleStatsTasks.py.
def lsst.pipe.tasks.exampleStatsTasks.ExampleSimpleStatsTask.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 195 of file exampleStatsTasks.py.
|
static |
Definition at line 183 of file exampleStatsTasks.py.