R/estimateAWC.R
correctAWC.Rd
Apply rock fragment or salt correction to available water content
Numeric vector of available water capacities (e.g. from estimateAWC
)
Numeric vector of rock fragment volume percentage, 0 - 100
Numeric vector of gravel volume percentage, 0 - 100
Numeric vector of electrical conductivity, mmhos/cm
Interpret NA
in total_rf
, gravel
or ec
as 0
? Default: TRUE
A numeric vector (double) containing estimated available water capacities corrected for rock fragments and salts
# medium organic matter, loam texture
base.awc <- 0.18 # estimateAWC(texcl = "l", omcl = 2, na.rm = TRUE)
# medium organic matter, loam texture w/ 23% rock fragments by volume
corrected.awc <- correctAWC(base.awc, total_rf = 23)
corrected.awc
#> [1] 0.15
# medium organic matter, loam texture w/ 0% frags by volume and 8 mmhos/cm salts
salty.awc <- correctAWC(base.awc, total_rf = 0, ec = 8)
salty.awc
#> [1] 0.14