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
|
Ultimate base class for all measurement tasks. More...
Public Member Functions | |
def | __init__ |
Constructor; only called by derived classes. More... | |
def | initializePlugins |
def | callMeasure |
Call the measure() method on all plugins, handling exceptions in a consistent way. More... | |
def | callMeasureN |
Call the measureN() method on all plugins, handling exceptions in a consistent way. More... | |
Public Attributes | |
plugins | |
algMetadata | |
Static Public Attributes | |
ConfigClass = BaseMeasurementConfig | |
Private Member Functions | |
def | _applyApCorrIfWanted |
Apply aperture corrections to a catalog, if wanted. More... | |
Static Private Attributes | |
string | _DefaultName = "measurement" |
Ultimate base class for all measurement tasks.
This base class for SingleFrameMeasurementTask and ForcedMeasurementTask mostly exists to share code between the two, and generally should not be used directly.
Definition at line 242 of file baseMeasurement.py.
def lsst.meas.base.baseMeasurement.BaseMeasurementTask.__init__ | ( | self, | |
algMetadata = None , |
|||
kwds | |||
) |
Constructor; only called by derived classes.
[in] | algMetadata | An lsst.daf.base.PropertyList that will be filled with metadata about the plugins being run. If None, an empty PropertyList will be created. |
[in] | **kwds | Additional arguments passed to lsst.pipe.base.Task.__init__. |
This attaches two public attributes to the class for use by derived classes and parent tasks:
Definition at line 258 of file baseMeasurement.py.
|
private |
Apply aperture corrections to a catalog, if wanted.
This method is intended to be called at the end of every subclass's run method or other measurement sequence. This is a thin wrapper around self.applyApCorr.run.
[in,out] | sources | catalog of sources to which to apply aperture corrections |
[in] | apCorrMap | aperture correction map (lsst.afw.image.ApCorrMap) or None; typically found in an lsst.afw.image.ExposureInfo if provided then it must contain two entries for each flux field:
|
[in] | endOrder | ending execution order, or None; if provided then aperture corrections are only wanted if endOrder > lsst.meas.base.BasePlugin.APCORR_ORDER |
lsst.pipe.base.TaskError | if aperture corrections are wanted and the exposure does not contain an aperture correction map. |
Definition at line 388 of file baseMeasurement.py.
def lsst.meas.base.baseMeasurement.BaseMeasurementTask.callMeasure | ( | self, | |
measRecord, | |||
args, | |||
kwds | |||
) |
Call the measure() method on all plugins, handling exceptions in a consistent way.
[in,out] | measRecord | lsst.afw.table.SourceRecord that corresponds to the object being measured, and where outputs should be written. |
[in] | *args | Positional arguments forwarded to Plugin.measure() |
[in] | **kwds | Keyword arguments. Two are handled locally:
|
This method can be used with plugins that have different signatures; the only requirement is that 'measRecord' be the first argument. Subsequent positional arguments and keyword arguments are forwarded directly to the plugin.
This method should be considered "protected"; it is intended for use by derived classes, not users.
Definition at line 305 of file baseMeasurement.py.
def lsst.meas.base.baseMeasurement.BaseMeasurementTask.callMeasureN | ( | self, | |
measCat, | |||
args, | |||
kwds | |||
) |
Call the measureN() method on all plugins, handling exceptions in a consistent way.
[in,out] | measCat | lsst.afw.table.SourceCatalog containing records for just the source family to be measured, and where outputs should be written. |
[in] | beginOrder | beginning execution order (inclusive): measurements with executionOrder < beginOrder are not executed. None for no limit. |
[in] | endOrder | ending execution order (exclusive): measurements with executionOrder >= endOrder are not executed. None for no limit. |
[in] | *args | Positional arguments forwarded to Plugin.measure() |
[in] | **kwds | Keyword arguments. Two are handled locally:
|
This method can be used with plugins that have different signatures; the only requirement is that 'measRecord' be the first argument. Subsequent positional arguments and keyword arguments are forwarded directly to the plugin.
This method should be considered "protected"; it is intended for use by derived classes, not users.
Definition at line 343 of file baseMeasurement.py.
def lsst.meas.base.baseMeasurement.BaseMeasurementTask.initializePlugins | ( | self, | |
kwds | |||
) |
Initialize the plugins (and slots) according to the configuration. Derived class constructors should call this method to fill the self.plugins attribute and add correspond output fields and slot aliases to the output schema. In addition to the attributes added by BaseMeasurementTask.__init__, a self.schema attribute holding the output schema must also be present before this method is called, . Keyword arguments are forwarded directly to plugin constructors, allowing derived classes to use plugins with different signatures.
Definition at line 279 of file baseMeasurement.py.
|
staticprivate |
Definition at line 256 of file baseMeasurement.py.
lsst.meas.base.baseMeasurement.BaseMeasurementTask.algMetadata |
Definition at line 277 of file baseMeasurement.py.
|
static |
Definition at line 255 of file baseMeasurement.py.
lsst.meas.base.baseMeasurement.BaseMeasurementTask.plugins |
Definition at line 274 of file baseMeasurement.py.