hydromodpy.core.field_routing#

Pure helpers for drain budgets and mesh routing.

Functions

accumulate_downhill_on_mesh(local_values, ...)

Accumulate per-cell source values along the steepest downhill mesh path.

active_surface_mask(topography, *[, ...])

Return True for cells with a finite, non-nodata surface elevation.

cell_adjacency_from_face_connectivity(...[, ...])

Build a cell-neighbor graph from UGRID face-node connectivity.

cell_centroids_from_mesh(vertices, ...)

Return one XY centroid per mesh face.

drain_budget_to_positive_outflow(...[, n_cells])

Convert a signed drain budget to positive per-cell outflow.

find_drain_budget_key(mapping)

Return the first stored drain-budget key found in a mapping/group.