correctAWC: Apply rock fragment or salt correction to available water...

View source: R/estimateAWC.R

correctAWCR Documentation

Apply rock fragment or salt correction to available water content

Description

Apply rock fragment or salt correction to available water content

Usage

correctAWC(
  awc,
  total_rf = numeric(length(awc)),
  gravel = NULL,
  ec = NULL,
  nullFragsAreZero = TRUE
)

Arguments

awc

Numeric vector of available water capacities (e.g. from estimateAWC)

total_rf

Numeric vector of rock fragment volume percentage, 0 - 100

gravel

Numeric vector of gravel volume percentage, 0 - 100

ec

Numeric vector of electrical conductivity, mmhos/cm

nullFragsAreZero

Interpret NA in total_rf, gravel or ec as 0? Default: TRUE

Value

A numeric vector (double) containing estimated available water capacities corrected for rock fragments and salts

Examples


# 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

# 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

aqp documentation built on Oct. 19, 2024, 5:06 p.m.