Skip to content

Update Docker run scripts

The current Docker image acquired via docker pull usgs/nshmp-haz does not successfully execute calculations. It appears that it is downloading the old XML models from github rather than the new models for nshm-conus(2018) and nshm-hawaii. See get_model() in docker-functions.init.sh.

Currently, the only models that need to be supported, according to the nshmp-haz-v2 docs and release plan, are nshm-conus(2018) and nshm-hawaii (2021).

Failure can be reproduced with the following commands (after docker pull usgs/nshmp-haz):

  • docker run -e PROGRAM=hazard -e MODEL=CONUS_2018 -v $(pwd)/sites.geojson:/app/sites.geojson -v $(pwd)/config.json:/app/config.json -v $(pwd)/hazout:/app/output usgs/nshmp-haz
    • apparently even the correct model would run into the existing CONUS model parsing issues
  • docker run -e PROGRAM=hazard -e MODEL=HI_2020 -v $(pwd)/sites.geojson:/app/sites-hi.geojson -v $(pwd)/config.json:/app/config.json -v $(pwd)/hazout:/app/output usgs/nshmp-haz

TODO:

  • Download correct CONUS_2018 and HAWAII_2021 models from gitlab

  • Hawaii model identifier should be HAWAII_2021 following the convention for CONUS

  • Also see gradle/ext.gradle repo and model paths

Edited by Altekruse, Jason Morgan