pyflwdir.FlwdirRaster.smooth_rivlen#

FlwdirRaster.smooth_rivlen(rivlen, min_rivlen, max_window=10, nodata=-9999.0)#

Return smoothed river length, by taking the window average of river length. The window size is increased until the average exceeds the min_rivlen threshold or the max_window size is reached.

Parameters:
  • rivlen (2D array of float) – River length values.

  • min_rivlen (float) – Minimum river length.

  • max_window (int) – maximum window size

Returns:

River length values.

Return type:

2D array of float