constructDataIds¶
-
lsst.validate.drp.util.
constructDataIds
(filters, visits, ccds, ccdKeyName='ccd')¶ Returns a list of dataIds consisting of every combination of visit & ccd for each filter.
Parameters: - filters :
str
orlist
[str
] If str, will be interpreted as one filter to be applied to all visits.
- visits :
list
[int
] - ccds :
list
[int
] - ccdKeyName :
str
, optional Name to distinguish different parts of a focal plane. Generally ‘ccd’, but might be ‘ccdnum’, or ‘amp’, or ‘ccdamp’. Refer to your
obs_*/policy/*Mapper.paf
.
Returns: - dataIds :
list
dataIDs suitable to be used with the LSST Butler.
Examples
>>> dataIds = constructDataIds('r', [100, 200], [10, 11, 12]) >>> for dataId in dataIds: print(dataId) {'filter': 'r', 'visit': 100, 'ccd': 10} {'filter': 'r', 'visit': 100, 'ccd': 11} {'filter': 'r', 'visit': 100, 'ccd': 12} {'filter': 'r', 'visit': 200, 'ccd': 10} {'filter': 'r', 'visit': 200, 'ccd': 11} {'filter': 'r', 'visit': 200, 'ccd': 12}
- filters :