View source: R/apsimx_soil_profile.R
available_water_content | R Documentation |
Calculation of available water content based on an object of class ‘soil_profile’
available_water_content(
x,
depth,
area = c("m", "m2", "ha"),
method = c("linear", "constant"),
weights,
...
)
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). |
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’.
returns a value with attribute ‘units’ and ‘depth’
## Not run:
sp <- apsimx_soil_profile()
available_water_content(sp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.