available_water_content: Calculate available water content

View source: R/apsimx_soil_profile.R

available_water_contentR Documentation

Calculate available water content

Description

Calculation of available water content based on an object of class ‘soil_profile’

Usage

available_water_content(
  x,
  depth,
  area = c("m", "m2", "ha"),
  method = c("linear", "constant"),
  weights,
  ...
)

Arguments

x

object of class ‘soil_profile’

depth

soil depth (in meters). If missing then the whole soil profile is used.

area

either ‘m’ meter, ‘m2’ meter squared or ‘ha’.

method

interpolation method. Either ‘linear’ or ‘constant’.

weights

optional weights

...

additional arguments passed to internal functions (none used at the moment).

Details

Function to calculate available water content. The output units depend on the choice of area. If ‘m’ is used, then the output units will be ‘mm’. If the ‘area’ is ‘m2’, then the output units will be in ‘m3’. If the ‘area’ is ‘ha’, then the output units will be ‘kg/ha’.

Value

returns a value with attribute ‘units’ and ‘depth’

Examples

## Not run: 
sp <- apsimx_soil_profile()
available_water_content(sp)

## End(Not run)

femiguez/apsimx documentation built on April 13, 2024, 12:04 a.m.