FractionDiaSourcesToSciSourcesMetricTask

FractionDiaSourcesToSciSourcesMetricTask computes the fraction of science sources that become DIASources when processed through image differencing (as the ip_diffim.fracDiaSourcesToSciSources metric). It requires source catalogs as input, and can operate at image-level or coarser granularity.

Processing summary

FractionDiaSourcesToSciSourcesMetricTask reads source catalogs (src and deepDiff_diaSrc datasets, by default) and counts the number of sources. It then computes the ratio of DIASources to science sources for those catalogs.

Python API summary

from lsst.ip.diffim.metrics import FractionDiaSourcesToSciSourcesMetricTask
classFractionDiaSourcesToSciSourcesMetricTask(**kwargs)

Task that computes the ratio of difference image sources to science sources in an image, visit, etc...

attributeconfig

Access configuration fields and retargetable subtasks.

methodrun(sciSources, diaSources)

Compute the ratio of DIASources to science sources...

See also

See the FractionDiaSourcesToSciSourcesMetricTask API reference for complete details.

Butler datasets

Input datasets

sciSources
The catalog type for science sources (default: src).
diaSources
The catalog type for DIASources (default: deepDiff_diaSrc).

Retargetable subtasks

No subtasks.

Configuration fields

diaSources

Data type
lsst.pipe.base.config.InputDatasetConfig
Field type
ConfigField
The catalog of DIASources.

sciSources

Data type
lsst.pipe.base.config.InputDatasetConfig
Field type
ConfigField
The catalog of science sources.