hydromodpy.results.contracts#

Strong-typed return contracts for Run field/raster/mesh accessors.

These dataclasses replace the legacy dict and tuple payloads returned by Run. Frozen + slotted: cheap to allocate, immutable for callers, attribute access only.

Classes

Mesh(vertices, face_node_connectivity, ...)

UGRID mesh payload for a single simulation.

RasterField(data, transform, crs, nodata, shape)

Single-band raster with georeferencing metadata.

Stack(data, variable)

Time stack of regular-in-plan rasters as (n_t, nrow, ncol).

UGridStack(data, variable, mesh)

Time stack of UGRID per-cell field values as (n_t, n_cells).