Skip to content

ths_grid_build

Console script for building hazard grid tables from NSHM hazard curves.

This script was migrated from the toshi-hazard-haste project.

ths_grid_build

Console script for building/reading NSHM hazard grid tables in parquet dataset format.

Usage:

ths_grid_build [OPTIONS] COMMAND [ARGS]...

Options:

  --help  Show this message and exit.

build

Produce gridded hazard for the given CONFIG file and save in OUTPUT_TARGET.

Usage:

ths_grid_build build [OPTIONS] CONFIG OUTPUT_TARGET

Options:

  -lsl, --list-site-lists    print the list of sites list ENUMs and exit
  -v, --verbose
  -w, --num-workers INTEGER  [default: 4]
  --help                     Show this message and exit.

geojson

Query gridded hazard and build geojson.

Usage:

ths_grid_build geojson [OPTIONS]

Options:

  -H, --hazard_model_ids TEXT  comma-delimted list of hazard model ids.
  -L, --site-list TEXT         A site list ENUM.
  -I, --imts TEXT              comma-delimited list of imts.
  -A, --aggs TEXT              comma-delimited list of aggs.
  -V, --vs30s TEXT             comma-delimited list of vs30s.
  -P, --poes TEXT              comma-delimited list of poe_levels.
  -c, --config PATH
  --help                       Show this message and exit.