pyflwdir.FlwdirRaster.hand#

FlwdirRaster.hand(drain: ndarray, elevtn: ndarray) → ndarray[source]#

Return the height above the nearest drain (HAND).

HAND is the relative vertical distance (drop) to the nearest downstream river, calculated from drainage-normalized topography and flow paths.

Nobre A D et al. (2016) HAND contour: a new proxy predictor of inundation extent

Hydrol. Process. 30 320-33

Parameters:
  • drain (2D array of bool) – Boolean mask of drainage cells.

  • elevtn (2D array of float) – Elevation raster.

Returns:

HAND raster, with no-data cells set to -9999.

Return type:

2D array of float