OpyNDATA is a package supporting the open data from measurement projects at the Structural Dynamics group at Department of Structural Engineering, NTNU.
Either install via PyPI as follows:
pip install opyndata
or install directly from github:
pip install git+https://www.github.com/knutankv/opyndata.git@main
Import the relevant package modules, exemplified for the data_import module, as follows:
from opyndata import data_importThis code snippet imports h5 file into data object:
import h5py
file_name = 'data_2Hz.h5'
rec_name = 'NTNU142M-2016-12-26_22-33-33'
hf = h5py.File(fname, 'r')[rec_name]To establish graphical visualization of data set, the following code can be run:
from opyndata import visualization
data_path = 'C:/Users/knutankv/BergsoysundData/data_10Hz.h5'
app_setup = visualization.AppSetup(data_path=data_path)
app = app_setup.create_app()
server = app.server
if __name__ == '__main__':
app.run_server(debug=False)The result can be viewed by opening https://127.0.0.1:8050 in a web browser (port 8050 is default, but others can be requested in the call of the run_server method of app).
For full code reference visit knutankv.github.io/opyndata.
Examples are provided as Jupyter Notebooks in the examples folder.
For an overview of available open measurement data from us, visit https://www.ntnu.edu/kt/open-data
Cite as: Knut Andreas Kvåle. (2022). knutankv/opyndata: Initial release, available on Zenodo (v0.0.2). Zenodo. https://doi.org/10.5281/zenodo.5978358
Please open an issue for support.