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 mean and standard deviation of an image. More...
Public Member Functions | |
def | run |
Compute and return statistics for a masked image. More... | |
Static Public Attributes | |
ConfigClass = pexConfig.Config | |
Even a task with no configuration requires setting ConfigClass. More... | |
Private Attributes | |
_statsControl | |
Static Private Attributes | |
string | _DefaultName = "exampleSimpleStats" |
Having a default name simplifies construction of the task, since the parent task need not specify a name. More... | |
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 142 of file exampleStatsTasks.py.
def lsst.pipe.tasks.exampleStatsTasks.ExampleSimpleStatsTask.run | ( | self, | |
maskedImage | |||
) |
Compute and return statistics for a masked image.
[in] | maskedImage: | masked image (an lsst::afw::MaskedImage) |
Definition at line 191 of file exampleStatsTasks.py.
|
staticprivate |
Having a default name simplifies construction of the task, since the parent task need not specify a name.
Note: having a default name is required for command-line tasks. The name can be simple and need not be unique (except for multiple subtasks that will be run by a parent task at the same time).
Definition at line 184 of file exampleStatsTasks.py.
|
private |
Definition at line 201 of file exampleStatsTasks.py.
|
static |
Even a task with no configuration requires setting ConfigClass.
Definition at line 179 of file exampleStatsTasks.py.