pyflwdir.FlwdirRaster.downstream#

FlwdirRaster.downstream(data: ndarray) → ndarray#

Return the next downstream node’s value for each node.

Parameters:

data (array-like) – Values associated with graph cells. Use a 1D array for Flwdir and an array matching the raster shape for FlwdirRaster.

Returns:

Values from the next downstream cells, with the same shape as data.

Return type:

array