constructRunList

lsst.validate.drp.util.constructRunList(filter, visits, ccds, ccdKeyName='ccd')[source]

Construct a comprehensive runList for processCcd.py.

Parameters:

filter : str or list

visits : list of int

ccds : list of int

Returns:

list

list of strings suitable to be used with the LSST Butler.

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']