pyflwdir.FlwdirRaster.ucat_outlets#

FlwdirRaster.ucat_outlets(cellsize: int, uparea: ndarray | None = None, method: Literal['eam_plus', 'dmm'] = 'eam_plus') → ndarray[source]#

Return linear indices of unit-catchment outlet pixels.

The supported methods are eam_plus and dmm.

Parameters:
  • cellsize (int) – Unit-catchment width and height in high-resolution cells.

  • uparea (2D array of float, optional) – upstream area

  • method ({"eam_plus", "dmm"}, optional) – method to derive outlet cell indices, by default ‘eam_plus’

Returns:

idxs_out – linear indices of unit catchment outlet cells

Return type:

2D array of int