This function takes backup data frame output from flow_mapper()
and
form_mapper()
calculates hillslope, channel segments and impoundment
spatial entities required for input in to WEPP (Water Erosion and Prediction
Project) (among other metrics). Based on FacetMapR by R. A. (Bob) MacMillan,
LandMapper Environmental Solutions.
wepp_mapper(
folder,
chan_length = 200,
upslope_threshold = 300,
clean = FALSE,
resume = NULL,
log = TRUE,
verbose = FALSE,
quiet = FALSE,
debug = FALSE
)
Character. Location of flow_mapper()
output
Numeric. Channel length maximum length. Used to split channels into segments
Numeric. Threshold of upslope cells to define channel cells. #' Cells with an upslope value larger than this are considered channel cells
Logical. Remove all output files from previous runs in this folder?
Character. From which stage should the run be resumed? (see
Logical. Create log file recording progress?
Logical. Output extra progress messages.
Logical. Suppress all messages.
Logical. If TRUE, output files contain intermediate columns useful for debugging (e.g., 'buffer', 'seqno_buffer', etc.) Default FALSE.
if (FALSE) {
# First need to run flow_mapper()
flow_mapper(file = system.file("extdata", "testELEV.dbf", package = "LITAP"),
out_folder = "./testELEV/", nrow = 90, ncol = 90, grid = 5)
# Now can run wepp_mapper()
wepp_mapper(folder = "./testELEV/")
}