R-squared for C4 photosynthesis simulation (von Caemmerer model)

Usage

RsqEC4photo(obsDat, iVcmax = 60, iVpmax = 120, iVpr = 80, iJmax = 400, co2 = 380, o2 = 210, type = c("Assim", "StomCond"))

Arguments

obsDat
observed assimilation data, which should be a data frame or matrix. The first column should be observed net assimilation rate (\mu mol m^{-2} s^{-1}). The second column should be the observed quantum flux (\mu mol m^{-2} s^{-1}). The third column should be observed temperature of the leaf (Celsius). The fourth column should be the observed relative humidity in proportion (e.g. 0.7).
iVcmax
Maximum rubisco activity (\mu mol m^{-2} s^{-1}).
iVpmax
Maximum PEP carboxylase activity (\mu mol m^{-2} s^{-1}).
iVpr
PEP regeneration rate (\mu mol m^{-2} s^{-1}).
iJmax
Maximal electron transport rate (\mumol electrons m^{-2} s^{-1}).
co2
atmospheric carbon dioxide concentration (ppm or \mubar) (default = 380).
o2
atmospheric oxygen concentration (mbar) (default = 210).
type
Use "Assim" if you want an R^2 for assimilation data and use "StomCond" if you want an R^2 for stomatal conductance data.

Value

a numeric object

It simply returns the R^2 value for the given data and coefficients.

Description

This is an auxiliary function which is made available in case it is useful. It calculates the R-squared based on observed assimilation (or stomatal conductance) data and coefficients for the von Caemmerer C4 photosynthesis model. The only coefficients being considered are Vcmax, Vpmax, Vpr and Jmax.

Examples

data(obsNaid) obs <- obsNaid ## These data are from Naidu et al. (2003) ## in the correct format res <- RsqEC4photo(obs) ## Other example using Beale, Bint and Long (1996) data(obsBea) obsD <- obsBea resB <- RsqEC4photo(obsD)