pyflwdir.FlwdirRaster.ucat_area#

FlwdirRaster.ucat_area(idxs_out, unit='cell')[source]#

Returns the unit catchment map (highres) and area (lowres) [m2].

Parameters:
  • idxs_out (2D array of int) – linear indices of unit catchment outlets

  • unit ({'m2', 'ha', 'km2', 'cell'}) – Upstream area unit.

Returns:

  • ucat_map (2D array of int with self.shape) – unit catchment map [-]

  • ucat_are (2D array of float with idxs_out.shape) – subgrid cell area [m2]