LSSTApplications
11.0-24-g0a022a1,14.0+77,15.0,15.0+1
LSSTDataManagementBasePackage
|
Functions | |
def | getDataset (butler, dataset, dataId, strict, warn) |
def | getPsf (butler, dataset, dataId, strict, warn) |
def lsst.datarel.utils.getDataset | ( | butler, | |
dataset, | |||
dataId, | |||
strict, | |||
warn | |||
) |
Get a dataset from a repository with an optional exception or warning if not found @param[in] butler: data butler @param[in] dataset: name of desired dataset @param[in] dataId: data ID dict @param[in] strict: if True then raise RuntimeError if dataset not found @param[in] warn: if True and strict False then print a warning to stderr if dataset not found @raise RuntimeError if dataset not found and strict true
Definition at line 29 of file utils.py.
def lsst.datarel.utils.getPsf | ( | butler, | |
dataset, | |||
dataId, | |||
strict, | |||
warn | |||
) |
Get the PSF from a repository without reading (very much of) the exposure @param[in] butler: data butler @param[in] dataset: name of desired dataset @param[in] dataId: data ID dict of exposure containing desired PSF @param[in] strict: if True then raise RuntimeError if psf not found @param[in] warn: if True and strict False then print a warning to stderr if psf not found @raise RuntimeError if exposure not found (regardless of strict) @raise RuntimeError if exposure has no PSF and strict true