NumberSolarSystemObjectsMetricTask#

class lsst.ap.association.metrics.NumberSolarSystemObjectsMetricTask(**kwargs)#

Bases: MetadataMetricTask

Task that computes the number of SolarSystemObjects that are observable within this detectorVisit.

Methods Summary

getInputMetadataKeys(config)

Return the metadata keys read by this task.

makeMeasurement(values)

Compute the total number of SolarSystemObjects within a detectorVisit.

Methods Documentation

classmethod getInputMetadataKeys(config)#

Return the metadata keys read by this task.

Parameters#

configcls.ConfigClass

Configuration for this task.

Returns#

keysdict [str, str]

The keys are the (arbitrary) names of values to use in task code, the values are the metadata keys to be looked up (see the metadataKeys parameter to extractMetadata). Metadata keys are assumed to include task prefixes in the format of lsst.pipe.base.Task.getFullMetadata(). This method may return a substring of the desired (full) key, but the string must match a unique metadata key.

makeMeasurement(values)#

Compute the total number of SolarSystemObjects within a detectorVisit.

Parameters#

valuesdict [str, int or None]

A dict representation of the metadata. Each dict has the following key:

numTotalSolarSystemObjects

The number of SolarSystemObjects within the observable detector area (int or None). May be None if solar system association was not attempted or the image was not successfully associated.

Returns#

measurementlsst.verify.Measurement or None

The total number of Solar System objects.