FractionDiaSourcesToSciSourcesMetricTask#
- class lsst.ip.diffim.metrics.FractionDiaSourcesToSciSourcesMetricTask(**kwargs)#
Bases:
MetricTaskTask that computes the ratio of difference image sources to science sources in an image, visit, etc.
Notes#
The task excludes any non-primary sources in the catalog, but it does not require that the catalog include a
detect_isPrimaryorsky_sourcescolumn.Methods Summary
run(sciSources, diaSources)Compute the ratio of DIASources to non-primary science sources.
Methods Documentation
- run(sciSources, diaSources)#
Compute the ratio of DIASources to non-primary science sources.
Parameters#
- sciSources
lsst.afw.table.SourceCatalog A science source catalog, which may be empty.
- diaSources
lsst.afw.table.SourceCatalog A DIASource catalog for the same unit of processing as
sciSources.
Returns#
- result
lsst.pipe.base.Struct A
Structcontaining the following component:measurementthe ratio (
lsst.verify.MeasurementorNone)
- sciSources