MatchedVisitMetricsTask

class lsst.validate.drp.matchedVisitMetricsTask.MatchedVisitMetricsTask(config=None, name=None, parentTask=None, log=None)

Bases: lsst.pipe.base.CmdLineTask

An alternate command-line driver for the validate_drp metrics.

MatchedVisitMetricsTask is very much an incomplete CmdLineTask - it uses the usual mechanisms to define its inputs and read them using a Butler, but writes outputs manually to files with a configuration-defined prefix (config.outputPrefix). Because the CmdLineTask machinery always creates an output Butler repository, however, it is necessary to run this task with both an output directory and an output prefix, with the former essentially unused.

The input data IDs passed via the --id argument should contain the same keys as the wcs dataset (those used by the calexp dataset plus tract). When config.useJointCal is True, the photoCalib and wcs datasets are used to calibrate sources; when it is False, tract is ignored (but must still be present) and the photometric calibration is retrieved from the calexp and the sky positions of sources are loaded directly from the src dataset (which is used to obtain raw measurmenets in both cases).

Methods Summary

run(butler, filterName, output, dataIds) Compute cross-visit metrics for one filter.

Methods Documentation

run(butler, filterName, output, dataIds)

Compute cross-visit metrics for one filter.

Parameters:
butler The initialized butler.
filterName The filter name to be processed.
output The output repository to save files to.
dataIds The butler dataIds to process.