constructRunList

lsst.validate.drp.util.constructRunList(visits, ccds, ccdKeyName='ccd')

Construct a comprehensive runList for processCcd.py.

Parameters:
visits : list of int

The desired visits.

ccds : list of int

The desired ccds.

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 ignores filter because visit should be unique w.r.t filter.

Examples

>>> runList = constructRunList([100, 200], [10, 11, 12])
>>> print(runList)
['--id visit=100 ccd=10^11^12', '--id visit=200 ccd=10^11^12']
>>> runList = constructRunList([100, 200], [10, 11, 12], ccdKeyName='ccdnum')
>>> print(runList)
['--id visit=100 ccdnum=10^11^12', '--id visit=200 ccdnum=10^11^12']