Sign inSign up

gfzriesgos/shakyground

By gfzriesgos

•Updated over 3 years ago

Image
0

1.2K

gfzriesgos/shakyground repository overview

Build Status

⁠Shakyground

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

⁠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

Tag summary

Content type

Image

Digest

sha256:5d9ec509d…

Size

2 GB

Last updated

over 3 years ago

docker pull gfzriesgos/shakyground