Finds the main stem, based on stream lengths, of each stream network.
wbt_find_main_stem(
d8_pntr,
streams,
output,
esri_pntr = FALSE,
zero_background = FALSE,
wd = NULL,
verbose_mode = FALSE,
compress_rasters = FALSE
)
Input raster D8 pointer file.
Input raster streams file.
Output raster file.
D8 pointer uses the ESRI style scheme.
Flag indicating whether a background value of zero should be used.
Changes the working directory.
Sets verbose mode. If verbose mode is False, tools will not print output messages.
Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
Returns the tool text outputs.