breach_depressions {whitebox} | R Documentation |
Breaches all of the depressions in a DEM using Lindsay's (2016) algorithm. This should be preferred over depression filling in most cases.
breach_depressions(dem, output, max_depth = NULL, max_length = NULL, flat_increment = NULL, fill_pits = FALSE, verbose_mode = FALSE)
dem |
Input raster DEM file. |
output |
Output raster file. |
max_depth |
Optional maximum breach depth (default is Inf). |
max_length |
Optional maximum breach channel length (in grid cells; default is Inf). |
flat_increment |
Optional elevation increment applied to flat areas. |
fill_pits |
Optional flag indicating whether to fill single-cell pits. |
verbose_mode |
Sets verbose mode. If verbose mode is False, tools will not print output messages. |
Returns the tool text outputs.