Skip to main content

A library for working with 2022 NSHM fault geometry

Project description

NSHM Database Generation

This repository contains a script and schema to generate a database storing fault geometry and rupture information parsing GeoJSON information from the GNS National Seismic Hazard Model.

Requirments

  • Python 3.x
  • numpy
  • qcore
  • sqlite3

Generate your own database

  1. Obtain the CRU fault system solution (ask a member of the software team for this file). It should be a zip file with the following structure
.
├── aggregate_rates.csv
├── composite_rates.csv
├── modules.json
├── README
├── ruptures
│   ├── average_slips.csv
│   ├── build_info.json
│   ├── fast_indices.csv
│   ├── fault_sections.geojson
│   ├── grid_node_association_fracts.csv
│   ├── grid_node_sect_associations.csv
│   ├── grid_region.geojson
│   ├── indices.csv
│   ├── inversion_target_mfds.json
│   ├── logic_tree_branch.json
│   ├── mod_sect_min_mags.csv
│   ├── modules.json
│   ├── NZSHM22_TvzSections.csv
│   ├── paleo_constraint_data.json
│   ├── properties.csv
│   ├── regional_inversion_target_mfds.json
│   ├── sect_polygons.geojson
│   ├── sect_slip_rates.csv
│   └── sub_seismo_on_fault_mfds.csv
├── solution
│   ├── annealing_progress.csv
│   ├── build_info.json
│   ├── inversion_misfit_progress.csv
│   ├── modules.json
│   ├── rates.csv
│   └── sub_seismo_on_fault_mfds.csv
└── WARNING.md

YOU DO NOT NEED TO EXTRACT THIS FILE ANYWHERE

  1. After cloning this repository and installing the depedencies, run the following
python nshmdb/scripts/nshm_db_generator.py <PATH_TO_CRU_FAULT_ZIP> nshmdb.db

This will take some time.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nshmdb-2025.12.1.tar.gz (38.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nshmdb-2025.12.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file nshmdb-2025.12.1.tar.gz.

File metadata

  • Download URL: nshmdb-2025.12.1.tar.gz
  • Upload date:
  • Size: 38.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nshmdb-2025.12.1.tar.gz
Algorithm Hash digest
SHA256 d7627319020d226121784d112d07f3774c3802bb7f5a317f54d20ef48c5e1ac5
MD5 dfd3fe9030daa8961ca97f821745fcf6
BLAKE2b-256 6c8d0afa18ac8323f2220f156f2d3a2b923cb59abd8cf4d77a18a0ec454776ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for nshmdb-2025.12.1.tar.gz:

Publisher: publish-PyPI.yml on ucgmsim/NSHM2022DB

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nshmdb-2025.12.1-py3-none-any.whl.

File metadata

  • Download URL: nshmdb-2025.12.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nshmdb-2025.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 058790c7d7d0095ded218ac1ce1449aba65ed1d7c112014289f09093e69f196c
MD5 5547ec4afee032695562f65581a38aa3
BLAKE2b-256 16ca7b06b69dea5c5f35ccfe06e260889daef7d502465361a2547319f0b77e77

See more details on using hashes here.

Provenance

The following attestation bundles were made for nshmdb-2025.12.1-py3-none-any.whl:

Publisher: publish-PyPI.yml on ucgmsim/NSHM2022DB

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page