26 from .catalogCalculation
import (CatalogCalculationPluginConfig,
27 CatalogCalculationPlugin)
28 from .pluginRegistry
import register
31 "CatalogCalculationFootprintAreaConfig",
32 "CatalogCalculationFootprintAreaPlugin",
42 """A catalog calcluation plugin that simply records the area of the 43 source's detection Footprint. 46 ConfigClass = CatalogCalculationFootprintAreaConfig
52 def __init__(self, config, name, schema, metadata):
53 CatalogCalculationPlugin.__init__(self, config, name, schema, metadata)
54 self.
key = schema.addField(
55 schema.join(name,
"value"),
57 doc=
"Number of pixels in the source's detection footprint.",
62 measRecord.set(self.
key, measRecord.getFootprint().getArea())
64 def fail(self, measRecord, error=None):
def register(name, shouldApCorr=False, apCorrList=())
A Python decorator that registers a class, using the given name, in its base class's PluginRegistry...
float DEFAULT_CATALOGCALCULATION