This repository contains the source code to OpenSRA_backend, developed by Slate Geotechnical Consultants (Slate), with assistance from NHERI SimCenter and UC Berkeley. The source code for the front end can be found here.
Barry Zheng, PhD @ Slate
Steve Gavrilovic, PhD @ NHERI SimCenter: LinkedIn
Maxime Lacour, PhD @ UC Berkeley: LinkedIn
OpenSRA has been tested on Python version 3.10.8 s The Python modules required for the current version of OpenSRA are listed below, along with the versions used for testing. Modules were installed via "conda", the "conda-forge" channel, and "pip". If you are experiencing difficulty installing the modules, consider working in a clean environment.
From "conda-forge"
conda install -c conda-forge geopandas rasterio shapely openpyxl numba h5py
-- note: the above command may take awhile to solve
From "pip"
pip install numba_stats openquake.engine tables
OpenSRA uses a number of prepackaged datasets that are not stored on GitHub due to file size. Please contact Barry Zheng or refer to the User Manual for download link to datasets.
To run OpenSRA in the command prompt:
- Nagivate to the root folder of OpenSRA.
- Run preprocess command on the working directory using the command:
python Preprocess.py -w FULL_PATH_TO_INPUT_FOLDER
- Once preprocessing is finished, run the main script for OpenSRA using the command: To clean results from the previous run, run the command:
python OpenSRA.py -w FULL_PATH_TO_INPUT_FOLDER
Under development
The OpenSRA development team would like to acknowledge Dr. Wael Elhaddad and Dr. Kuanshi Zhong @ NHERI SimCenter for providing developmental support on the OpenSHA interface, and Dr. Simon Kwong @ USGS for providing technical feedback on seismic and performance-based hazard analysis.
Please check the license file in the root folder.