Provides a simple model to simulate soil water content and water flux changes at multiple soil depths. Calculations mainly follow Allen et al. (1998, ISBN:92-5-104219-5) and Teh (2017, ISBN:9789673447626).
Simulation of multi-layer soil water content and water fluxes (Darcy-style unsaturated flow), with FAO-56 helpers for reference and crop evapotranspiration.
# From a local source tarball
install.packages("soilwatR_0.1.0.tar.gz", repos = NULL, type = "source")
# Or from the package directory
# install.packages("path/to/soilwatR", repos = NULL, type = "source")
Optional combined plotting panels require ggpubr (Suggests).
library(soilwatR)
data(SIalfalfa)
param <- list(
initialRootingDepth = 1.2,
RootGrowthRate = 0.0035,
has_watertable = FALSE,
subintervals = 20,
maxsteps = 5
)
SIalfalfa_T1 <- SIalfalfa$Input[SIalfalfa$Input$Tre2 == "T1", ]
soilProfileSet_T1 <- SIalfalfa$soilProfileSet
soilProfileSet_T1["THETA_v_curr", ] <- c(0.12, 0.13, 0.28, 0.31, NA)
result <- soilwatr(
data = SIalfalfa_T1,
param = param,
soilProfileSet = soilProfileSet_T1
)
head(result)
# plot_result(result) # uses ggpubr if installed
soilwatr() — daily multi-layer soil water simulationcal_ET0() / cal_PET() — FAO-56 style ET helpersplot_result() — ggplot2 visualization of model outputGPL (>= 3)
Minguo Liu [email protected]