pyflwdir.FlwdirRaster.inflow_idxs# FlwdirRaster.inflow_idxs(region: ndarray) → ndarray[source]# Return linear indices of the most upstream cells within a region. Parameters: region (2D array of bool) – True for cells inside the region. Returns: Linear indices of the most upstream cells in region. Return type: 1D array of int