returns a value with attribute ‘units’ and ‘depth’
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’.