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
|
Base class for single-frame plugin algorithms. More...
Public Member Functions | |
def | __init__ |
Initialize the measurement object. More... | |
def | measure |
Measure the properties of a source on a single image (single-epoch image or coadd). More... | |
def | measureN |
Measure the properties of a group of blended sources on a single image (single-epoch image or coadd). More... | |
Static Public Attributes | |
tuple | registry = PluginRegistry(SingleFramePluginConfig) |
ConfigClass = SingleFramePluginConfig | |
Base class for single-frame plugin algorithms.
New Plugins can be created in Python by inheriting directly from this class and implementing measure(), fail() (from BasePlugin), and optionally init and measureN(). Plugins can also be defined in C++ via the WrappedSingleFramePlugin class.
def lsst.meas.base.sfm.SingleFramePlugin.__init__ | ( | self, | |
config, | |||
name, | |||
schema, | |||
metadata | |||
) |
Initialize the measurement object.
[in] | config | An instance of this class's ConfigClass. |
[in] | name | The string the plugin was registered with. |
[in,out] | schema | The Source schema. New fields should be added here to hold measurements produced by this plugin. |
[in] | metadata | Plugin metadata that will be attached to the output catalog |
Definition at line 59 of file sfm.py.
def lsst.meas.base.sfm.SingleFramePlugin.measure | ( | self, | |
measRecord, | |||
exposure | |||
) |
Measure the properties of a source on a single image (single-epoch image or coadd).
[in,out] | measRecord | lsst.afw.table.SourceRecord to be filled with outputs, and from which previously-measured quantities can be retreived. |
[in] | exposure | lsst.afw.image.ExposureF, containing the pixel data to be measured and the associated Psf, Wcs, etc. All other sources in the image will have been replaced by noise according to deblender outputs. |
Definition at line 71 of file sfm.py.
def lsst.meas.base.sfm.SingleFramePlugin.measureN | ( | self, | |
measCat, | |||
exposure | |||
) |
Measure the properties of a group of blended sources on a single image (single-epoch image or coadd).
[in,out] | measCat | lsst.afw.table.SourceCatalog to be filled with outputs, and from which previously-measured quantities can be retrieved, containing only the sources that should be measured together in this call. |
[in] | exposure | lsst.afw.image.ExposureF, containing the pixel data to be measured and the associated Psf, Wcs, etc. Sources not in the blended hierarchy to be measured will have been replaced with noise using deblender outputs. |
Derived classes that do not implement measureN() should just inherit this disabled version. Derived classes that do implement measureN() should additionally add a bool doMeasureN config field to their config class to signal that measureN-mode is available.
Definition at line 87 of file sfm.py.
|
static |
|
static |