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
- 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
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7627319020d226121784d112d07f3774c3802bb7f5a317f54d20ef48c5e1ac5
|
|
| MD5 |
dfd3fe9030daa8961ca97f821745fcf6
|
|
| BLAKE2b-256 |
6c8d0afa18ac8323f2220f156f2d3a2b923cb59abd8cf4d77a18a0ec454776ff
|
Provenance
The following attestation bundles were made for nshmdb-2025.12.1.tar.gz:
Publisher:
publish-PyPI.yml on ucgmsim/NSHM2022DB
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nshmdb-2025.12.1.tar.gz -
Subject digest:
d7627319020d226121784d112d07f3774c3802bb7f5a317f54d20ef48c5e1ac5 - Sigstore transparency entry: 757884930
- Sigstore integration time:
-
Permalink:
ucgmsim/NSHM2022DB@6bd99cf8831bfade0722e064b292958244a4a3e0 -
Branch / Tag:
refs/tags/v2025.12.1 - Owner: https://github.com/ucgmsim
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-PyPI.yml@6bd99cf8831bfade0722e064b292958244a4a3e0 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
058790c7d7d0095ded218ac1ce1449aba65ed1d7c112014289f09093e69f196c
|
|
| MD5 |
5547ec4afee032695562f65581a38aa3
|
|
| BLAKE2b-256 |
16ca7b06b69dea5c5f35ccfe06e260889daef7d502465361a2547319f0b77e77
|
Provenance
The following attestation bundles were made for nshmdb-2025.12.1-py3-none-any.whl:
Publisher:
publish-PyPI.yml on ucgmsim/NSHM2022DB
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nshmdb-2025.12.1-py3-none-any.whl -
Subject digest:
058790c7d7d0095ded218ac1ce1449aba65ed1d7c112014289f09093e69f196c - Sigstore transparency entry: 757884933
- Sigstore integration time:
-
Permalink:
ucgmsim/NSHM2022DB@6bd99cf8831bfade0722e064b292958244a4a3e0 -
Branch / Tag:
refs/tags/v2025.12.1 - Owner: https://github.com/ucgmsim
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-PyPI.yml@6bd99cf8831bfade0722e064b292958244a4a3e0 -
Trigger Event:
release
-
Statement type: