db_prepare_musle: Prepare various input related to use of (M)USLE module...

View source: R/db_prepare_musle.R

db_prepare_musleR Documentation

Prepare various input related to use of (M)USLE module (erosion)

Description

Function to write parameter values relevant for modelling application with the WASA hydrological model into an existing database, preferably created with db_create.

Usage

db_prepare_musle(dbname, compute_K = FALSE,
  copy_from_other_tables = NULL, setP = NULL, verbose = TRUE)

Arguments

dbname

Name of the data source (DSN) registered at ODBC. See Details of db_create.

compute_K

Compute (M)USLE K-factor (soil erodibility) from properties of topmost soil horizon, write it to table "soil" (use copy_from_other_tables to transfer it to table "soil_veg_components"). c(TRUE, FALSE)

copy_from_other_tables

Copy values to table "soil_veg_components": MUSLE-C and Manning-n from table "vegetation", MUSLE-K from "soils". Array of strings with possible values c("MUSLE-C", "Manning-n" ,"MUSLE-K") of db_create.

setP

Set entire column of (M)USLE P-factor (protection measures) to a single value (usually 1). Default NULL (do not set).

verbose

logical. Should detailed information during execution be printed? Default: TRUE.

Details

after Williams (1995). [explanation to be elaborated]

Author(s)

Till Francke francke@uni-potsdam.de

References

lumpR paper
Pilz, T.; Francke, T.; Bronstert, A. (2017): lumpR 2.0.0: an R package facilitating landscape discretisation for hillslope-based hydrological models. Geosci. Model Dev., 10, 3001-3023, doi: 10.5194/gmd-10-3001-2017


tpilz/lumpR documentation built on Aug. 5, 2023, 1:31 a.m.