Skip to content

Open-source software for seismic risk analysis (OpenSRA)

License

Notifications You must be signed in to change notification settings

bzheng10/OpenSRA_dev

Repository files navigation

OpenSRA

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.

Developers

Barry Zheng, PhD @ Slate

Steve Gavrilovic, PhD @ NHERI SimCenter: LinkedIn

Maxime Lacour, PhD @ UC Berkeley: LinkedIn

Dependencies

Python

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"

numpy (1.23.5)

pandas (1.5.2)

scipy (1.9.3)

openpyxl (3.0.10)

h5py (3.7.0)

geopandas (0.12.2)

rasterio (1.3.4)

shapely (2.0.0)

numba (0.56.4)

conda install -c conda-forge geopandas rasterio shapely openpyxl numba h5py

-- note: the above command may take awhile to solve

From "pip"

numba_stats (1.1.0)

openquake.engine (3.15.0)

tables (3.7.0)

pip install numba_stats openquake.engine tables

Additional prepackaged datasets for OpenSRA

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.

User's Guide

To run OpenSRA in the command prompt:

  1. Nagivate to the root folder of OpenSRA.
  2. Run preprocess command on the working directory using the command:
python Preprocess.py -w FULL_PATH_TO_INPUT_FOLDER
  1. 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

Developer's Guide

Under development

Acknowledgements

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.

License

Please check the license file in the root folder.

About

Open-source software for seismic risk analysis (OpenSRA)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages