pyflwdir.FlwdirRaster.outflow_idxs#
- FlwdirRaster.outflow_idxs(region: ndarray) ndarray[source]#
Return linear indices of the most downstream cells within a region.
- Parameters:
region (2D array of bool) – True for cells inside the region.
- Returns:
Linear indices of the most downstream cells in region.
- Return type:
1D array of int
Notes
The cells are the same for every ordering set with order_cells (see its Notes). They follow the sequence though, so their order changes with the method.