hydromodpy.display.ugrid#

UGRID mesh rendering helper shared by spatial figures.

Reads mesh.vertices and mesh.face_node_connectivity from the Run and draws a per-face scalar field as a PolyCollection. Works identically on DIS (rectangular cells) and DISV (arbitrary polygons) layouts because both solver families serialize their mesh in the same UGRID schema.

Functions

last_timestep(sim)

Return the index of the last timestep, or 0 if not declared.

render_face_field(ax, sim, values, *[, ...])

Draw values (one scalar per face) as colored polygons on ax.