taudem_d8flowdir {traudem} | R Documentation |
D8 Flow Directions
Description
D8 Flow Directions
Usage
taudem_d8flowdir(
input_elevation_grid,
output_d8flowdir_grid = NULL,
output_d8slopes_grid = NULL,
n_processes = getOption("traudem.n_processes", 1),
quiet = getOption("traudem.quiet", FALSE)
)
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 |
quiet |
If |
Details
See https://hydrology.usu.edu/taudem/taudem5/help53/D8FlowDirections.html
Value
List with the two output filenames.
Examples
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
[Package traudem version 1.0.3 Index]