An S3 class for fg_flux()
models. The class inherits from
cfp_dat and adds any model specific parameters.
Usage
cfp_fgmod(
x,
gases = unique_gases(x),
modes = "LL",
param = c("c_air", "DS"),
funs = c("arith", "harm")
)
Arguments
- x
A
cfp_dat
object with all the necessary input datasets.- gases
(character) A character vector defining the gases for which fluxes shall be calculated.
- modes
(character) A character vector specifying mode(s) for dcdz calculation. Can be
"LL"
,"LS"
,"EF"
.- LL
local linear approach: within each layer a linear model is evaluated of concentration over the depth.
- LS
linear spline approach: A linear spline is fitted over the complete profile with nodes at the layer intersections.
- EF
exponential fit approach: An exponential function of form y=a+b*x^c is fit of concentration against depth. Using the first derivative of that function the concentration gradient is evaluated for each layer.
- DA
exponential fit approach: An exponential function of form
y=a+b*(1-exp(-a*x))
is fit of concentration against depth. Using the first derivative of that function the concentration gradient is evaluated for each layer. From Davidson (2006).
- param
(character) A vector containing the the parameters of soilphys, for which means should be calculated, must contain "c_air" and "DS", more parameters may help interpretation.
- funs
(character) A vector defining the type of mean to be used for each parameter in
param
. One of "arith" or "harm".
Value
A cfp_fgmod
object. This inherits from cfp_dat()
and
adds model specific parameters.
References
DAVIDSON, E. A., SAVAGE, K. E., TRUMBORE, S. E., & BORKEN, W. (2006). Vertical partitioning of CO2 production within a temperate forest soil. In Global Change Biology (Vol. 12, Issue 6, pp. 944–956). Wiley. https://doi.org/10.1111/j.1365-2486.2005.01142.x
See also
Other model frames:
cfp_altres()
,
cfp_fgres()
,
cfp_pfmod()
,
cfp_pfres()
Examples
cfp_fgmod(ConFluxPro::base_dat)
#>
#> A cfp_fgmod fg_flux model.
#> gases: CO2
#> modes: LL
#> param: c_air DS
#> funs: arith harm
#>
#> A cfp_dat object to be used as input in ConFluxPro models.
#> id_cols: site Date gas
#> number of profiles: 24
#> number of groups: 2
#>