Skip to content

Releases

Model data from the tip of each branch

Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Nov 09:03
a01c319

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

Choose a tag to compare

@lispandfound lispandfound released this 20 Nov 09:04
6f9ce61

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.zip and sites-vX.Y.Z.zip, each with a .sha256 file, are attached to the release by the Publish VM data workflow (#120). Downloads need no credentials and the links are stable. Earlier releases keep their Dropbox links and gain no assets. README.md explains how to download and verify the files.

What's Changed

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

Choose a tag to compare

@lispandfound lispandfound released this 15 Nov 22:08
dd84c5c

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::blend and barycentric interpolation used the plain harmonic mean of Q; they now use the velocity-weighted harmonic mean Σ w v / Σ (w v / Q), which keeps Q = c v (the Ely taper and tomography defaults) exact. BackusAveragedLayer used 1 / v weights; 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/--qs joins 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 ep2020 now downloads and MD5-checks the tables from Zenodo.

What's Changed

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

Choose a tag to compare

@lispandfound lispandfound released this 15 Nov 20:54
c8c4acf

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_t was untapered. Now the taper applies to the tomography everywhere onshore above depth_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.
  • transpose is removed from RegularGridConfig and SW4GridConfig (#108). It was documented as swapping the I and J axes but was never read. A config that sets it, even transpose = false, now raises ExtraKeysError. 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

Choose a tag to compare

@lispandfound lispandfound released this 09 Nov 03:02
d6db7cc

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 a Grid of one-sample columns (#107). Elevations are positive down, depth below the ground comes from surface, and a point above the topography moves down onto it. The grid fills GridSchema, including the k coordinate the Ely taper reads, so it runs through build_pipeline like 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

Choose a tag to compare

@lispandfound lispandfound released this 06 Nov 02:49
cf66592

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_globs now 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. QueryLayer now raises ValueError when no models are found, or when none intersect the layer geometry.
  • The nzcvm tree-stats command and the bench extra are removed (#93).
  • Functional layers built with keyword arguments now reject unknown names (#98). They raise TypeError where a misspelt parameter used to be silently ignored and kept its default.
  • nzcvm surface convert --spacing rejects zero and negative values, and nzcvm convert-tiff --downsample rejects values below 1 (#74). convert-tiff now overwrites an existing output.
  • The out and where parameters of ModelTree._query_many_raw and the mask field of the Rust QueryCoordinates binding are removed (#99). Neither ever worked as documented, and ModelTree.query_many is unaffected.

Bug fixes

  • StructuredGrid::local_coordinates always 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 with clamp=True. The root closest to the unit cell is now chosen. Parallelogram cells are unchanged.
  • Surface.transform returned NaN for points on valid nodes or edges whenever another corner of their cell was NaN (#94). 0 * NaN is 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.transform cast 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 returns float64, and plain lists are accepted. Floating-point input is unchanged.

Features

  • The package is now MIT-licensed and ships a CITATION.cff for 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

  • @claude[bot] made their first contribution in #84

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

Choose a tag to compare

@lispandfound lispandfound released this 15 Oct 20:49
7f72538

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 global min (#63).
    [layers.clamps.vs]
    min = 500.0
    
    [[layers.clamps.vs.floors]]
    depth = 2000.0       # metres below topography
    min = 1000.0
  • nzcvm view basin --dem draws the DEM under the basins, and --dem-opacity sets its opacity (default 0.6). Only the DEM window around the meshes is read (#62).
  • ModelTree.query_many accepts coordinates on any broadcastable dims, such as a 1-D point dim, and returns a plain xr.Dataset for 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 0 and --max-val 0 are respected (#66, fixes #29), --diff-mode log works on models read from disk (#66, fixes #34), and view basin draws a marker placed at coordinate 0.
  • Corrected the MeshRefinement and registry docstrings (#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 at thickness/depth; now the grid extends to the first multiple of resolution_z that 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 of resolution_z don't change. A thickness/depth less than resolution_z is 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 in build_sw4 now fail when loaded, with an error naming the refinements.
  • sfile output 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

Choose a tag to compare

@lispandfound lispandfound released this 12 Oct 23:58
f788378

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 vertical and aabb attributes. Old resources.zip files 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. The mesh extra and gmsh are removed.
  • nzcvm basin main has changed (#46, #53, #56):
    • Depth-profile meshes are the default; --layered gives the old meshes.
    • --topography is required.
    • It meshes all layers of a basin in one run, with an --output, --priority and --model for each layer.
    • --layer-bottoms is new.

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-tiff streams rasters and gains --flip. surface convert resamples 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

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

Choose a tag to compare

@lispandfound lispandfound released this 08 Oct 20:18
3196bfc

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 in xr.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

Choose a tag to compare

@lispandfound lispandfound released this 08 Oct 01:24
580b67c

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