View source: R/fnc_compare_soil.R
fnc_compare_soil | R Documentation |
This function enables the user to visually compare modelling options. As the soil input is likely to be very influencial for the model's output, this is also a reason to check for potentially confusing results.
The two main options are comparing the soil data itself, and comparing what the PTFs do with the data at hand.
fnc_compare_soil(
df.ids,
testgebiet = "BDS",
what_to_test = "PTF",
depths_to_test = c(-0.15, -0.3, -0.6),
soiloptions_to_test = "STOK",
MvG_own_vals = F,
PTF_to_use = "HYPRES",
PTF_to_test = "HYPRES",
soiloption_to_use = "STOK",
limit_MvG = F,
df.soils = NULL,
output_path,
bze_buffer = NA,
meta.out = NA
)
df.ids |
a data frame containing the following columns:
|
testgebiet |
at the current stage of development, we're working with test areas that have to be named here as |
what_to_test |
sets the main selection, whether soil data or PTF behaviour should be investigated. |
MvG_own_vals |
if |
PTF_to_use |
which PTF should be applied for creating hydraulic information from soil data in |
PTF_to_test |
if |
soiloption_to_use |
which soil data should the PTFs in |
limit_MvG |
should the hydraulic parameters limited to "reasonable" ranges as described in |
df.soils |
if
Caution: |
output_path |
path to the folder where images shall be printed to |
bze_buffer |
whether buffer should be used in extracting points from BZE raster files if |
depth_to_test |
the depth in which comparisons should be made in m negative downwards from the surface. Default is |
soiloption_to_test |
if |
Returns one image for each ID in df.ids, showing water retention and conductivity curves if PTFs
are investigated. If soil data is compared, soil texture triangle, bd, oc.pct and gravel are also shown.
# create folder for testfiles
dir.create("./testfiles/SOIL/", recursive = T)
dir.create("./testfiles/PTF/", recursive = T)
output1 <- paste0(getwd(), "/testfiles/SOIL/")
output2 <- paste0(getwd(), "/testfiles/PTF/")
# comparing the different soil data provided by STOK, BZE and OWN with HYPRES as PTF
fnc_compare_soil(df.ids = test.ids.bds,
testgebiet = "BDS",
what_to_test = "SOILDATA",
depths_to_test = c(-0.15, -0.30, -0.60),
soiloptions_to_test = c("STOK", "BZE", "OWN"),
MvG_own_vals = F,
PTF_to_use = "HYPRES",
limit_MvG = F,
df.soils = df.own.test,
output_path = output1)
# comparing how the three PTF options implemented in LWFBrook90 perform with the soil data from STOK
fnc_compare_soil(df.ids = test.ids.bds,
testgebiet = "BDS",
what_to_test = "PTFs",
depths_to_test = c(-0.15, -0.30, -0.60, -0.9),
PTF_to_test = c("HYPRES", "PTFPUH2", "WESSOLEK"),
soiloption_to_use = "BZE",
limit_MvG = F,
df.soils = NULL,
output_path = output2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.