constructRunList¶
-
lsst.validate.drp.util.
constructRunList
(filter, visits, ccds, ccdKeyName='ccd')¶ Construct a comprehensive runList for processCcd.py.
Parameters: Returns: - `list`
list of strings suitable to be used with the LSST Butler.
Notes
The LSST parsing convention is to use ‘^’ as list separators for arguments to
--id
. While surprising, this convention allows for CCD names to include ‘,’. E.g., ‘R1,2’. Currently ignoresfilter
becausevisit
should be unique w.r.t filter.Examples
>>> runList = constructRunList([100, 200], 'r', [10, 11, 12]) >>> print(runList) ['--id visit=100 ccd=10^11^12', '--id visit=200 ccd=10^11^12'] >>> runList = constructRunList([100, 200], 'r', [10, 11, 12], ccdKeyName='ccdnum') >>> print(runList) ['--id visit=100 ccdnum=10^11^12', '--id visit=200 ccdnum=10^11^12']