Skip to content

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.