LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Functions | |
def | read_one_chip (root, chip_name, chip_id) |
def | check_metadata (obj, valid_start, instrument, chip_id, filepath, data_name) |
def | read_all (root, camera) |
def lsst.pipe.tasks.read_curated_calibs.check_metadata | ( | obj, | |
valid_start, | |||
instrument, | |||
chip_id, | |||
filepath, | |||
data_name | |||
) |
Check that the metadata is complete and self consistent Parameters ---------- obj : object of same type as the factory Object to retrieve metadata from in order to compare with metadata inferred from the path. valid_start : `datetime` Start of the validity range for data instrument : `str` Name of the instrument in question chip_id : `int` Identifier of the sensor in question filepath : `str` Path of the file read to construct the data data_name : `str` Name of the type of data being read Returns ------- None Raises ------ ValueError If the metadata from the path and the metadata encoded in the path do not match for any reason.
Definition at line 51 of file read_curated_calibs.py.
def lsst.pipe.tasks.read_curated_calibs.read_all | ( | root, | |
camera | |||
) |
Read all data from the standard format at a particular root. Parameters ---------- root : `str` Path to the top level of the data tree. This is expected to hold directories named after the sensor names. They are expected to be lower case. camera : `lsst.afw.cameraGeom.Camera` The camera that goes with the data being read. Returns ------- dict A dictionary of dictionaries of objects constructed with the appropriate factory class. The first key is the sensor name lowered, and the second is the validity start time as a `datetime` object. Notes ----- Each leaf object in the constructed dictionary has metadata associated with it. The detector ID may be retrieved from the DETECTOR entry of that metadata.
Definition at line 93 of file read_curated_calibs.py.
def lsst.pipe.tasks.read_curated_calibs.read_one_chip | ( | root, | |
chip_name, | |||
chip_id | |||
) |
Read data for a particular sensor from the standard format at a particular root. Parameters ---------- root : `str` Path to the top level of the data tree. This is expected to hold directories named after the sensor names. They are expected to be lower case. chip_name : `str` The name of the sensor for which to read data. chip_id : `int` The identifier for the sensor in question. Returns ------- `dict` A dictionary of objects constructed from the appropriate factory class. The key is the validity start time as a `datetime` object.
Definition at line 9 of file read_curated_calibs.py.