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 thewcs
dataset (those used by thecalexp
dataset plustract
). Whenconfig.useJointCal
isTrue
, thephotoCalib
andwcs
datasets are used to calibrate sources; when it isFalse
,tract
is ignored (but must still be present) and the photometric calibration is retrieved from thecalexp
and the sky positions of sources are loaded directly from thesrc
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.
-