runOneFilter¶
- lsst.validate.drp.validate.runOneFilter(repo, visitDataIds, brightSnrMin=None, brightSnrMax=None, makeJson=True, filterName=None, outputPrefix='', doApplyExternalPhotoCalib=False, externalPhotoCalibName=None, doApplyExternalSkyWcs=False, externalSkyWcsName=None, skipTEx=False, verbose=False, metrics_package='verify_metrics', instrument='Unknown', dataset_repo_url='./', skipNonSrd=False, **kwargs)¶
- Main executable for the case where there is just one filter. - Plot files and JSON files are generated in the local directory prefixed with the repository name (where ‘_’ replace path separators), unless overriden by specifying - outputPrefix. E.g., Analyzing a repository- CFHT/outputwill result in filenames that start with- CFHT_output_.- Parameters:
- repostring or Butler
- A Butler or a repository URL that can be used to construct one. 
- dataIdslist of dict
- List of - butlerdata IDs of Image catalogs to compare to reference. The- calexppixel image is needed for the photometric calibration unless doApplyExternalPhotoCalib is True such that the appropriate- photoCalibdataset is used. Note that these have data IDs that include the tract number.
- brightSnrMinfloat, optional
- Minimum median SNR for a source to be considered bright; passed to - lsst.validate.drp.matchreduce.build_matched_dataset.
- brightSnrMaxfloat, optional
- Maximum median SNR for a source to be considered bright; passed to - lsst.validate.drp.matchreduce.build_matched_dataset.
- makeJsonbool, optional
- Create JSON output file for metrics. Saved to current working directory. 
- outputPrefixstr, optional
- Specify the beginning filename for output files. 
- filterNamestr, optional
- Name of the filter (bandpass). 
- doApplyExternalPhotoCalibbool, optional
- Apply external photoCalib to calibrate fluxes. 
- externalPhotoCalibNamestr, optional
- Type of external - PhotoCalibto apply. Currently supported are jointcal, fgcm, and fgcm_tract. Must be set if doApplyExternalPhotoCalib is True.
- doApplyExternalSkyWcsbool, optional
- Apply external wcs to calibrate positions. 
- externalSkyWcsNamestr, optional
- Type of external - wcsto apply. Currently supported is jointcal. Must be set if “doApplyExternalSkyWcs” is True.
- skipTExbool, optional
- Skip TEx calculations (useful for older catalogs that don’t have PsfShape measurements). 
- verbosebool, optional
- Output additional information on the analysis steps. 
- skipNonSrdbool, optional
- Skip any metrics not defined in the LSST SRD. 
 
- Raises:
- RuntimeError:
- Raised if “doApplyExternalPhotoCalib” is True and “externalPhotoCalibName” is None, or if “doApplyExternalSkyWcs” is True and “externalSkyWcsName” is None.