R/soilwater.R

Defines functions soilwater

Documented in soilwater

soilwater <-
function(x, theta_R, theta_S, alpha, n, m = 1-1/n,
   saturation.index = FALSE)
{
   sat.index <- (1 + (alpha * x) ^ n) ^ (-m)
   if (saturation.index) {
      out <- sat.index
      } else {
      out <- theta_R + (theta_S - theta_R) * sat.index
   }
   return(out)
}

Try the soilphysics package in your browser

Any scripts or data that you put into this service are public.

soilphysics documentation built on June 7, 2022, 5:06 p.m.