D8 Flow Directions
Arguments
- input_elevation_grid
Pit filled elevation input data.
- output_d8flowdir_grid
D8 flow directions output.
- output_d8slopes_grid
D8 slopes output.
- n_processes
Number of processes for
mpiexec
. IfNULL
TauDEM is called without mpiexec.- quiet
If
FALSE
output from TauDEM CLI is suppressed.
Examples
if (FALSE) { # interactive() && traudem::can_register_taudem()
test_dir <- withr::local_tempdir()
dir.create(test_dir)
file.copy(
system.file("test-data", "DEM.tif", package = "traudem"),
file.path(test_dir, "DEM.tif")
)
filled_pit <- taudem_pitremove(file.path(test_dir, "DEM.tif"))
outputs <- taudem_d8flowdir(filled_pit)
outputs
}