pyflwdir.FlwdirRaster.basin_outlets#
- FlwdirRaster.basin_outlets(basins)[source]#
Returns the linear index of the outlet cell of basins.
- Parameters:
basins (2D array of int) – raster with unique IDs for each basin, where the background value must be zero.
- Returns:
lbs (1D array) – array of the unique region IDs
idxs_out (1D array) – linear index of outlet cell per region