Repository navigation
Releases
Model data from the tip of each branch
Automated, mutable builds. models-master.zip and
sites-master.zip are replaced on every push to master,
and a branch's files whenever the workflow is dispatched on
it, so files here change without notice. Use a versioned
release for anything that needs to be reproduced or cited.
Master's files were built from nzcvm@a01c319.
Model data
| File | Contents | SHA-256 |
|---|---|---|
| models-master.zip | Basin and tomography models | 062b9aa19f2f3a0249d52a00f62b99182f3b12b4f6da566742e8f442fa0dee95 |
| sites-master.zip | Site database: profiles, and Vs30, Z1.0 and Z2.5 per station | b62efb670721c2ff3bf1e20917d3631b54804470803dce6ab03932ea59865bd9 |
| resources.zip | Vs30, DEM and coastline that the models build from | 2df8d67fa087cf30b28f709984d5886271083a302bfa74e8d34f91eab51380c4 |
Built from nzcvm_data@c547c43.
v2026.11.5
Summary
Built model data is now attached to the GitHub release as downloadable assets instead of being hosted on Dropbox. Model output, the Python package and the nzcvm CLI are unchanged.
Features
models-vX.Y.Z.zipandsites-vX.Y.Z.zip, each with a.sha256file, are attached to the release by thePublish VM dataworkflow (#120). Downloads need no credentials and the links are stable. Earlier releases keep their Dropbox links and gain no assets.README.mdexplains how to download and verify the files.
What's Changed
- Publish model data as release assets by @lispandfound in #120
Full Changelog: v2026.11.4...v2026.11.5
Model data
| File | Contents | SHA-256 |
|---|---|---|
| models-v2026.11.5.zip | Basin and tomography models | f2d36cfec325a60911b8050e3dfea7f9e8689e2fcb17f02b4fb137d8840831de |
| sites-v2026.11.5.zip | Site database: profiles, and Vs30, Z1.0 and Z2.5 per station | b866aa32d6fece05efdde072a28def22ec8bf8c1d5deb1ba3366e2b73db1a6ba |
| resources.zip | Vs30, DEM and coastline that the models build from | 2df8d67fa087cf30b28f709984d5886271083a302bfa74e8d34f91eab51380c4 |
Built from nzcvm_data@c547c43.
v2026.11.4
Summary
EP2020 now uses its own published 3D Qp and Qs, and Q is averaged consistently with velocity, so Q changes throughout the model. Density, Vp and Vs are unchanged.
Breaking changes
- The EP2020 tomography takes Qp and Qs from the NZwide 2.2 Zenodo tables (#118). Before, Q was set to Qs = 50 Vs and Qp = 2 Qs everywhere. Qs/Vs (km/s) is now 78 / 159 / 319 at the 5th / 50th / 95th percentiles, and Qp/Qs is 0.52 / 0.83 / 1.22. Basins and offshore regions still use 50 Vs / 2 Qs, so Q steps at basin edges. Spread-function columns are dropped, so poorly resolved nodes keep their starting-model Q.
- Blended and interpolated Q now uses the same mean as the velocity it attenuates (#119).
Quality::blendand barycentric interpolation used the plain harmonic mean of Q; they now use the velocity-weighted harmonic meanΣ w v / Σ (w v / Q), which keepsQ = c v(the Ely taper and tomography defaults) exact.BackusAveragedLayerused1 / vweights; it now uses the compliance weights it already applies to velocity. For a 50/50 mix of vs 300/2900, Qs 15/145, interpolated Qs goes 27.2 → 80.0 and Backus Qs goes 16.4 → 15.1. Q changes wherever materials are blended or interpolated.
Features
nzcvm tomography convert --qp/--qsjoins Qp and Qs tables onto the velocity table node by node (#118). Conversion fails if a node is missing or duplicated. Without the options, Q falls back to 50 Vs / 2 Qs as before.just ep2020now downloads and MD5-checks the tables from Zenodo.
What's Changed
- Build EP2020 from Zenodo with its own Qp and Qs by @lispandfound in #118
- Make Q averaging consistent with the velocity averaging by @lispandfound in #119
Full Changelog: v2026.11.3...v2026.11.4
Model data
| File | Contents | SHA-256 |
|---|---|---|
| models-v2026.11.4.zip | Basin and tomography models | 086092de2b575d05c8479070866817c5c984097d9a486e2cbcadfcad5f6b0bc3 |
| sites-v2026.11.4.zip | Site database: profiles, and Vs30, Z1.0 and Z2.5 per station | 23cbbc7b25a4a0e9280b83eac9dffca275aab0d15307fc443acce92b543dcfb7 |
| resources.zip | Vs30, DEM and coastline that the models build from | 2df8d67fa087cf30b28f709984d5886271083a302bfa74e8d34f91eab51380c4 |
Built from nzcvm_data@c547c43.
v2026.11.3
Summary
The Ely taper now applies to the tomography beneath basins, so velocity models and site profiles change under every basin. Grid configs that set the unused transpose key now fail to load.
Breaking changes
- Columns under a basin now get the Ely taper below the basin floor (#117). Before, a column with a basin at the surface skipped the taper entirely, so the tomography between the basin floor and
depth_twas untapered. Now the taper applies to the tomography everywhere onshore abovedepth_t, and basins are laid over the result: basin points keep the basin's own values, and the tomography beneath them is tapered. Basins also now always sit over the taper, where before the taper could overwrite a basin that did not reach the surface. Outside basins, output is unchanged. transposeis removed fromRegularGridConfigandSW4GridConfig(#108). It was documented as swapping the I and J axes but was never read. A config that sets it, eventranspose = false, now raisesExtraKeysError. Delete the key.
What's Changed
- Remove unused transpose option from grid configs by @claude[bot] in #108
- Test tomography origin projection, EP affine and convert CLI by @claude[bot] in #109
- Test view helpers and the basin and model commands by @claude[bot] in #110
- Test VelocityModel flip, pairwise and from_config by @claude[bot] in #111
- Fix to_emod3d docstring to match its signature and checks by @claude[bot] in #116
- Test EMOD3D writer output layout, flip and units by @claude[bot] in #115
- Test that register_grid_config imports all grid config modules by @claude[bot] in #114
- Apply the Ely taper to tomography under basins by @lispandfound in #117
Full Changelog: v2026.11.2...v2026.11.3
Model data
| File | Contents | SHA-256 |
|---|---|---|
| models-v2026.11.3.zip | Basin and tomography models | bc5d8e241c5b703910d6aa7858db5d9cc04109b0827d00711a27cbaa9f5cfc00 |
| sites-v2026.11.3.zip | Site database: profiles, and Vs30, Z1.0 and Z2.5 per station | e511375cce07014cca44c776fde1ca2f8967e8c8086871ff30f92ffcba876a90 |
| resources.zip | Vs30, DEM and coastline that the models build from | 2df8d67fa087cf30b28f709984d5886271083a302bfa74e8d34f91eab51380c4 |
Built from nzcvm_data@c547c43.
v2026.11.2
Summary
points_grid builds a grid from scattered points, so a layer pipeline can be read at any set of locations. Velocity model output is unchanged.
Features
nzcvm.grids.points.points_grid(x, y, z, surface, projection)turns projected points into aGridof one-sample columns (#107). Elevations are positive down, depth below the ground comes fromsurface, and a point above the topography moves down onto it. The grid fillsGridSchema, including thekcoordinate the Ely taper reads, so it runs throughbuild_pipelinelike any other grid. Leave Backus averaging out of a points pipeline: a one-sample column has nothing to average over.
What's Changed
- Add numerical tests for the Ely GTL taper by @claude[bot] in #106
- Run the Claude review automatically when a PR is ready by @lispandfound in #105
- Fix test isolation that breaks mutmut (and the nightly test improver) by @lispandfound in #104
- Add points_grid to run a layer pipeline at scattered points by @lispandfound in #107
Full Changelog: v2026.11.1...v2026.11.2
Model data
| File | Contents | SHA-256 |
|---|---|---|
| models-v2026.11.2.zip | Basin and tomography models | a232b60defb6afccedb288b13f25e7afaa2aa75d96dca300fce9cdffe26ba7ae |
| sites-v2026.11.2.zip | Site database: profiles, and Vs30, Z1.0 and Z2.5 per station | 365f15b6b094c26ebce2a3140b214dfb4935a441893298931597990d3c2dc253 |
| resources.zip | Vs30, DEM and coastline that the models build from | 2df8d67fa087cf30b28f709984d5886271083a302bfa74e8d34f91eab51380c4 |
Built from nzcvm_data@c547c43.
v2026.11.1
Summary
Point location in curvilinear grids, and Surface.transform interpolation near missing data and for integer coordinates, are fixed. QueryLayer now finds zarr meshes by default and raises instead of silently returning zeros when no models load. Velocity model values can change for points in widening trapezoidal grid cells and for points on valid nodes or edges next to NaN surface data (e.g. coastal Vs30).
Breaking changes
QueryLayerConfig.model_globsnow defaults to["*.zarr"]instead of["*.vtkhdf"](#90). Meshes are now zarr stores, so the old default matched nothing and every quality came back as zero without any error.QueryLayernow raisesValueErrorwhen no models are found, or when none intersect the layer geometry.- The
nzcvm tree-statscommand and thebenchextra are removed (#93). - Functional layers built with keyword arguments now reject unknown names (#98). They raise
TypeErrorwhere a misspelt parameter used to be silently ignored and kept its default. nzcvm surface convert --spacingrejects zero and negative values, andnzcvm convert-tiff --downsamplerejects values below 1 (#74).convert-tiffnow overwrites an existing output.- The
outandwhereparameters ofModelTree._query_many_rawand themaskfield of the RustQueryCoordinatesbinding are removed (#99). Neither ever worked as documented, andModelTree.query_manyis unaffected.
Bug fixes
StructuredGrid::local_coordinatesalways took the smaller root of the inverse bilinear quadratic (#73). On a trapezoidal cell whose far edge is longer than its near edge, that could be the spurious root. Interior points then came back outside the cell, or as NaN even withclamp=True. The root closest to the unit cell is now chosen. Parallelogram cells are unchanged.Surface.transformreturned NaN for points on valid nodes or edges whenever another corner of their cell was NaN (#94).0 * NaNis still NaN, so query grids aligned with a surface lost whole rows and columns along coastlines, which also switched off the Ely taper there. Corners with zero weight are now left out. Cells without NaN give the same result, apart from the last floating-point bit.Surface.transformcast elevations to the dtype of integer coordinates (#95). Every elevation was truncated toward zero (3.1 → 3), and NaN became-9223372036854775808. Non-float input now returnsfloat64, and plain lists are accepted. Floating-point input is unchanged.
Features
- The package is now MIT-licensed and ships a
CITATION.cfffor Zenodo archiving (#78).
What's Changed
- Bring CI in line with meta-ci-action by @ucgmsim[bot] in #68
- Refresh lockfiles by @ucgmsim[bot] in #67
- Add scheduled Claude AI jobs by @lispandfound in #77
- Test site_database.summarise (Vs30, Z1.0, Z2.5) by @lispandfound in #76
- Describe the mesh layout and zarr storage in the docstrings by @lispandfound in #75
- Pick the in-cell root when inverting a bilinear cell by @lispandfound in #73
- Add CITATION.cff and MIT licence for Zenodo archiving by @lispandfound in #78
- Run the AI issue solver and test improver daily by @lispandfound in #79
- Add tests for resource monitor, dask progress and logging config by @claude[bot] in #84
- Default model_globs to *.zarr and error when no models load by @claude[bot] in #90
- Reject non-positive --spacing and --downsample by @lispandfound in #74
- Remove tree stats module by @lispandfound in #93
- Make the Canterbury fence plot reproducible from output data by @lispandfound in #96
- Return floating elevations from Surface.transform for int coords by @claude[bot] in #95
- Add numerical tests for BackusAveragedLayer by @claude[bot] in #97
- Reject unknown keyword arguments in functional layers by @claude[bot] in #98
- Keep valid nodes and edges beside NaN nodes in Surface.transform by @claude[bot] in #94
- Drop out and where from ModelTree._query_many_raw by @claude[bot] in #99
- Add tests for convert_tomography.data_frame_to_mesh by @claude[bot] in #100
- Switch Criterion benchmarks to meta-ci-action/criterion-bench by @lispandfound in #101
New Contributors
Full Changelog: v2026.10.7...v2026.11.1
Model data
| File | Contents | SHA-256 |
|---|---|---|
| models-v2026.11.1.zip | Basin and tomography models | 3746a58d968c20803364f075e7b2cca267e6780d176ab5469b9baaefdc65da54 |
| sites-v2026.11.1.zip | Site database: profiles, and Vs30, Z1.0 and Z2.5 per station | d7b8b071284be48e1645d6fe45a41c2acfc487c2de72d46a73b270c2bdafdb50 |
| resources.zip | Vs30, DEM and coastline that the models build from | 2df8d67fa087cf30b28f709984d5886271083a302bfa74e8d34f91eab51380c4 |
Built from nzcvm_data@c547c43.
v2026.10.7
Summary
Vs clamps gain depth and elevation dependent floors (#63), and the basin viewer can underlay the DEM (#62). This release also fixes nine bugs (#64, #65, #66). Basin and tomography models do not change. Regular and borehole grids whose thickness is not a multiple of resolution_z now have a few more samples (see below).
Features
- Clamp bounds accept
floors: "below this depth (or elevation), tolerate no less than x", on top of the globalmin(#63).[layers.clamps.vs] min = 500.0 [[layers.clamps.vs.floors]] depth = 2000.0 # metres below topography min = 1000.0
nzcvm view basin --demdraws the DEM under the basins, and--dem-opacitysets its opacity (default 0.6). Only the DEM window around the meshes is read (#62).ModelTree.query_manyaccepts coordinates on any broadcastable dims, such as a 1-Dpointdim, and returns a plainxr.Datasetfor anything other than(i, j, k)(#64, fixes #22).
Bug fixes
- Clamps with relative bounds (
min_ref/max_ref) are no longer wrongly rejected (#65, fixes #28). nzcvm view model:--min-val 0and--max-val 0are respected (#66, fixes #29),--diff-mode logworks on models read from disk (#66, fixes #34), andview basindraws a marker placed at coordinate 0.- Corrected the
MeshRefinementandregistrydocstrings (#65, #64, fixes #45, #31). - Regular and borehole grids keep their vertical spacing at exactly
resolution_z(#65, fixes #44). The spacing used to stretch to end exactly atthickness/depth; now the grid extends to the first multiple ofresolution_zthat reaches that depth. Depth 1010 m at 25 m used to give 41 samples 25.25 m apart; it now gives 42 samples 25 m apart, down to 1025 m. Grids whose thickness is a multiple ofresolution_zdon't change. Athickness/depthless thanresolution_zis now rejected. - SW4 grid configs are validated up front (#65, fixes #42). Refinements must be non-empty, ordered by
bottom, and twice as coarse as the block above each time. Configs that used to crash inbuild_sw4now fail when loaded, with an error naming the refinements. sfileoutput now raises on an HDF5 write error (#66, fixes #41). Previously the run either reported success with missing data or hung.
What's Changed
- Underlay the DEM in the basin viewer by @lispandfound in #62
- Depth and elevation dependent Vs clamp floors by @lispandfound in #63
- Make query_many accept any dims; fix registry docs by @lispandfound in #64
- Fix view colour limits of 0, log diffs on dask grids, and silent sfile write errors by @lispandfound in #66
- Validate grid configs, keep regular/borehole spacing exact, accept relative clamp bounds by @lispandfound in #65
Full Changelog: v2026.10.6...v2026.10.7
Model data
| File | Contents | SHA-256 |
|---|---|---|
| models-v2026.10.7.zip | Basin and tomography models | 693553babd9a529f896004cbb0263ef42c1779c816ba9a2cd35e02bf8228a8f7 |
| sites-v2026.10.7.zip | Site database: profiles, and Vs30, Z1.0 and Z2.5 per station | 551914cc7286daa49a4804254a43786dcd0076a78bca3f7de9eb5ecd45b385ec |
| resources.zip | Vs30, DEM and coastline that the models build from | 2df8d67fa087cf30b28f709984d5886271083a302bfa74e8d34f91eab51380c4 |
Built from nzcvm_data@c547c43.
v2026.10.6
Summary
The 500 m DEM is replaced by the 30 m Copernicus GLO-30 DEM, and basins are now meshed and queried as depth below the topography (#56). Basin 1-D models are evaluated as depth profiles on an adaptive TIN (#46, #47). Velocity models change. Surfaces and models use new file formats, so download the new resources.zip and models below.
Breaking changes
- Surface and model file formats have changed (#56, #46, #50). Surfaces are upright xarray lattices, and meshes need the new
verticalandaabbattributes. Oldresources.zipfiles and older built models do not load. - Topography is the Copernicus 30 m DEM, and basin depths are measured below it (#56). Each basin keeps the thickness it was modelled with, measured from the DEM its modeller used.
- Basin 1-D models are evaluated as depth profiles, so layer interfaces sit at their exact depths (#46). Previously, interfaces were tilted where the basement was shallower than an interface. On Hanmer, 98.9% of points keep the same Vs.
- Basins are triangulated with an error-bounded TIN (
--tolerance, default 5 m) instead of gmsh (#47). Surfaces fit more closely, and meshes are 10–47× smaller. Themeshextra andgmshare removed. nzcvm basin mainhas changed (#46, #53, #56):- Depth-profile meshes are the default;
--layeredgives the old meshes. --topographyis required.- It meshes all layers of a basin in one run, with an
--output,--priorityand--modelfor each layer. --layer-bottomsis new.
- Depth-profile meshes are the default;
Features
- Each release publishes the built models and a site database to Dropbox (#53). The site database has 5 m profiles and Vs30, Z1.0 and Z2.5 for 389 observed stations. The links are in the table below.
convert-tiffstreams rasters and gains--flip.surface convertresamples lat/lon HDF5 surfaces onto an NZTM grid (#56).- Surfaces are read lazily: the 30 m DEM opens in milliseconds and uses under 0.85 GB of memory (#56).
What's Changed
- Bring CI in line with meta-ci-action by @ucgmsim[bot] in #40
- Model a mesh as geometry plus one typed quality field by @lispandfound in #49
- Model a mesh as geometry plus one typed quality field by @lispandfound in #50
- Evaluate basin 1-D models as depth profiles instead of layered tetrahedra by @lispandfound in #46
- Triangulate basins with an error-bounded TIN instead of gmsh by @lispandfound in #47
- Refresh lockfiles by @ucgmsim[bot] in #39
- Cap requires-python <3.15: blocked by h5py by @lispandfound in #52
- Upright lazy surfaces, the Copernicus DEM, and depth-queried basins by @lispandfound in #56
- Publish models and a site database to Dropbox from CI by @lispandfound in #53
- Pass the rclone config to setup-rclone as plain text by @lispandfound in #59
- Decode the rclone config secret as base64 again by @lispandfound in #61
Full Changelog: v2026.10.5...v2026.10.6
Model data
| File | Contents | SHA-256 |
|---|---|---|
| models-v2026.10.6.zip | Basin and tomography models | 12d7ea8f70826fe82d3a53c15e16ed2f03cf27f907fda6a5cb295ff897406b2c |
| sites-v2026.10.6.zip | Site database: profiles, and Vs30, Z1.0 and Z2.5 per station | 9f716e1dcb6e4e9982aed444ab7c5b1d08509989c929a84d0efb8cf5f8ef288a |
| resources.zip | Vs30, DEM and coastline that the models build from | 2df8d67fa087cf30b28f709984d5886271083a302bfa74e8d34f91eab51380c4 |
Built from nzcvm_data@c547c43.
v2026.10.5
Summary
Bug-fix release. Results do not change.
Bug fixes
- Multi-threaded runs could crash at random in the Ely taper with
cannot reindex or align along dimension 'degree'(#38). This was a thread-safety race inxr.polyval. Results are identical to before.
What's Changed
- Evaluate Brocher relations with np.polyval instead of xr.polyval by @lispandfound in #38
Full Changelog: v2026.10.4...v2026.10.5
v2026.10.4
Summary
Bug-fix release. Grid points outside the DEM now take the nearest edge elevation instead of NaN, which fixes NaNs in sfiles for domains that cross 180° (#37).
Bug fixes
- Grid points beyond the DEM's extent got NaN elevations, which ended up in the sfile when topography was on (#37). This came from v2026.10.3 (#36), and it hit domains that cross the antimeridian (e.g. ~7.6% of 2021p175751). These points now take the elevation of the nearest DEM edge vertex. The Ely layer still treats points outside the Vs30 map as NaN.
What's Changed
- Extrapolate DEM with nearest neighbour outside its extent by @lispandfound in #37
Full Changelog: v2026.10.3...v2026.10.4