Skip to content

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.