/shakyground

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Build Status

Shakyground

Openquake code is added here for convenience should be replaced in production by an actual openquake installation on server

Citation

Weatherill, Graeme; Pittore, Massimiliano; Haas, Michael; Brinckmann, Nils; Rüster, Matthias; Gomez-Zapata, Juan Camilo (2021): Shakyground: a web service to serve GMPE-based ground motion fields. V. 1.0. GFZ Data Services. https://doi.org/10.5880/riesgos.2021.004

Setup

We use the global vs30 grid created from the repository shakyground-grid-file.
To be able to run shakyground locally put the resulting file as global_vs30.grd within the shakyground directory (on same level as service.py):

mv /path/to/valparaiso_updated_global_vs30.grd global_vs30.grd

You can look up some documentation about the used grid file for share wave velocity on the usgs website:

https://earthquake.usgs.gov/data/vs30/

Add to PYTHONPATH (had trouble using env.sh from openquake --> gmt was using system gdal but openquake sqlite3 and complained):

export PYTHONPATH=$PYTHONPATH:/path/to/openquake/lib/python3.5/site-packages/

Required python libs:

  • mock
  • psutil

currently requires gmt --> will be removed

service can be tested with:

bash ./run_and_validate.sh

Docker

To run shakyground within a Docker container you can do the following:

docker pull gfzriesgos/shakyground
docker run -it gfzriesgos/shakyground /bin/bash
# now you are in the container environment and can run shakyground by executing:
python3 service.py quakeml_test.xml