eGSIM is a web service and Python library for selecting and testing ground shaking intensity models (GSIM), developed by the GFZ in the framework of the Thematic Core Services for Seismology of EPOS under the umbrella of EFEHR
The web portal (and API documentation) is available at:
Zaccarelli, Riccardo; Weatherill, Graeme (2020): eGSIM - a Python library and web application to select and test Ground Motion models. GFZ Data Services. https://doi.org/10.5880/GFZ.2.6.2023.007
Riccardo Zaccarelli, Graeme Weatherill, Dino Bindi, Fabrice Cotton; Ground‐Motion Models at Your Fingertips: Easy, Rapid, and Flexible Analysis with eGSIM. Seismological Research Letters 2026; doi: https://doi.org/10.1785/0220250228
- Web portal: https://egsim.gfz.de
- API Documentation: https://egsim.gfz.de/api_doc
- API Usage (Python): https://github.com/rizac/egsim-client.
- Jupyter notebook examples (Python): https://github.com/rizac/egsim-client/tree/main/notebook
eGSIM can also be installed and used as a Python package. This approach bypasses the web API and, while requiring a steeper learning curve to directly call core functions, allows local execution on the CPU with greater control over optimization.
For usage in your code after installation, see the Library functions reference
Select a root directory and clone eGSIM into it:
git clone https://github.com/rizac/eGSIM.gitthis will create the eGSIM directory. Move into it
(cd eGSIM)
Move to whatever directory you want (you can use the eGSIM repo directory,
as long as you create your virtualenv inside .env or .venv directories,
which are ignored by git), and then:
python3 -m venv .venv/egsim # replace ".venv/egsim" with your pathActivate virtualenv:
source .venv/egsim/bin/activate # replace ".venv/egsim" with your pathDeactivate virtualeanv:
deactivateIMPORTANT: From now on, all following operations must have the virtualenv activated FIRST
Choose your requirements file and then run installation
-
Old macOS (before 2023. Check by typing
uname -mon terminal, you should not getarm64):pip install -r requirements-py311-macos_x86_64.txt && pip install . -
New macOS (
uname -mon terminal givesarm64)pip install -r requirements-py311-macos_arm64.txt && pip install . -
Linux (To be done)
(remember to pip install pytest first)
pytest -vvv ./tests/smtk
