pyflwdir.FlwdirRaster.index# FlwdirRaster.index(xs: ndarray, ys: ndarray, **kwargs) → ndarray[source]# Returns linear cell indices based on x, y coordinates. Parameters: xs (ndarray of float) – x, y coordinates. ys (ndarray of float) – x, y coordinates. **kwargs (dict) – Additional coordinate-conversion options passed to gis.coords_to_idxs, such as op and precision. Returns: idxs – linear cell indices Return type: ndarray of int