slaclab / lcls-live

Tools for running the LCLS live accelerator models
https://slaclab.github.io/lcls-live/
Apache License 2.0
4 stars 8 forks source link

BSA snapshot functions #29

Closed ChristopherMayes closed 2 years ago

ChristopherMayes commented 2 years ago

Added high level functions to fetch BSA data from archived HDF5 files.

This finds the appropriate HDF5 file and extracts the data nearest the given timestamp:

from lcls_live.bsa import bsa_snapshot
bsa_snapshot('2021-12-11T00:00:00-08:00', 'cu_hxr')