idxs (array_like, optional) – Linear indices of pit cells.
xy (tuple of np.ndarray of float, optional) – x and y coordinates of pit cells.
streams (np.ndarray of bool, optional) – Boolean raster marking stream cells. When provided, pit locations are
snapped to the first downstream True cell.