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.