pyflwdir.FlwdirRaster.inflow_idxs#

FlwdirRaster.inflow_idxs(region)[source]#

Returns linear indices of most upstream cells within region

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

  • Returns

  • -------

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