pyflwdir.FlwdirRaster.outflow_idxs#

FlwdirRaster.outflow_idxs(region)[source]#

Returns linear indices of most downstream cells within region

Parameters:
  • region (2D array of bool) – True where region

  • Returns

  • -------

  • idxs (1D array of int) – linear indices