pyflwdir.FlwdirRaster.accuflux#

FlwdirRaster.accuflux(data, nodata=-9999, direction='up')#

Return accumulated data values along the flow directions.

Parameters:
  • data (2D array) – values

  • nodata (int or float) – Missing data value for cells outside domain

  • direction ({'up', 'down'}, optional) – direction in which to accumulate data, by default upstream

Returns:

accumulated values

Return type:

2D array with data.dtype