24 from .catalogCalculation
import (CatalogCalculationPluginConfig,
25 CatalogCalculationPlugin)
26 from .pluginRegistry
import register
29 "CatalogCalculationFootprintAreaConfig",
30 "CatalogCalculationFootprintAreaPlugin",
35 """Configuration for footprint area catalog calculation plugin.
43 """Catalog calculation plugin to record the area of a source's 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):