Skip to content
/ eGSIM Public

A web service and Python library for selecting and testing ground shaking intensity models (GSIM)

License

AGPL-3.0, Unknown licenses found

Licenses found

AGPL-3.0
LICENSE
Unknown
COPYING
Notifications You must be signed in to change notification settings

rizac/eGSIM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,590 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

efehr   gfz   eops

The web portal (and API documentation) is available at:

Citation

Software

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

Research paper

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 Service

Python library

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

Installation

Clone repository

Select a root directory and clone eGSIM into it:

git clone https://github.com/rizac/eGSIM.git

this will create the eGSIM directory. Move into it (cd eGSIM)

Create and activate a Python virtual environment (virtualenv)

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 path

Activate virtualenv:

source .venv/egsim/bin/activate  # replace ".venv/egsim" with your path

Deactivate virtualeanv:

deactivate

Install eGSIM

IMPORTANT: 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 -m on terminal, you should not get arm64):

    pip install -r requirements-py311-macos_x86_64.txt && pip install .

  • New macOS (uname -m on terminal gives arm64)

    pip install -r requirements-py311-macos_arm64.txt && pip install .

  • Linux (To be done)

Run tests (optional)

(remember to pip install pytest first)

pytest -vvv ./tests/smtk

About

A web service and Python library for selecting and testing ground shaking intensity models (GSIM)

Topics

Resources

License

AGPL-3.0, Unknown licenses found

Licenses found

AGPL-3.0
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Packages

No packages published