LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Example task to compute sigma-clipped mean and standard deviation of an image. More...
Public Member Functions | |
def | __init__ |
Construct an ExampleSigmaClippedStatsTask. More... | |
def | run |
Compute and return statistics for a masked image. More... | |
Static Public Attributes | |
ConfigClass = ExampleSigmaClippedStatsConfig | |
Private Attributes | |
_badPixelMask | |
_statsControl | |
Static Private Attributes | |
string | _DefaultName = "exampleSigmaClippedStats" |
Example task to compute sigma-clipped mean and standard deviation of an image.
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.
The main method is run.
See ExampleSigmaClippedStatsConfig
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 62 of file exampleStatsTasks.py.
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 100 of file exampleStatsTasks.py.
def lsst.pipe.tasks.exampleStatsTasks.ExampleSigmaClippedStatsTask.run | ( | self, | |
maskedImage | |||
) |
Compute and return statistics for a masked image.
[in] | maskedImage: | masked image (an lsst::afw::MaskedImage) |
Definition at line 117 of file exampleStatsTasks.py.
|
private |
Definition at line 109 of file exampleStatsTasks.py.
|
staticprivate |
Definition at line 98 of file exampleStatsTasks.py.
|
private |
Definition at line 111 of file exampleStatsTasks.py.
|
static |
Definition at line 97 of file exampleStatsTasks.py.