create_equations {gasanalyzer}R Documentation

Create a list of equations for recalculating gasanalyzer data.

Description

This function creates a list of equations that can be used to recalculate gas-exchange data by passing the resulting object to the recalculate() method. Various useflags can be defined to tune the equations. In addition, custom equations can be defined as arguments. Note that the calculations may fail if commons are missing in the gas-exchange data.

Usage

create_equations(useflags = "default", ...)

Arguments

useflags

character vector with the type of equations to create (see Details). Leave empty to obtain the default set. An unknown flag returns an empty list, and a warning listing all valid flags.

...

custom equations. the arguments must tagged function expressions. Note that the function body must be wrapped in curly brackets. The tags will be matched against the names of a data frame when applying the return value with recalculate().

Details

The useflags argument currently supports several pre-defined sets of equations.

Gas-Exchange and fluorescence models

default

A set with the most commonly-used derived quantities in the gas-exchange (GasEx) and chlorophyll fluorescence (FLR) categories. The equations are described in detail by von Caemmerer and Farquhar (1981) and LI-COR Biosciences Inc (2022).

GoffGratch1946

Replaces or adds equations related to the calculation of the saturated water pressure of the leaf (GasEx.SVPleaf) and chamber air (GasEx.SVPcham). The calculation is based on that described by Goff and Gratch (1946) and only takes the temperature into account.

Buck1981

Replaces or adds equations for (GasEx.SVPleaf) and (GasEx.SVPcham). based on the description by Buck (1981). Takes temperature and pressure into account.

Buck1996

Replaces or adds equations for (GasEx.SVPleaf) and (GasEx.SVPcham) based on the description by Buck (1996). Takes temperature and pressure into account.

cuticular_conductance

Replaces the equations related to CO2 and H2O conductance and substomatal CO2 (GasEx.gtw; GasEx.gsw; GasEx.gtc; GasEx.Ci) with versions that take into account cuticular conductance (Márquez et al., 2021, 2023). Requires manually specifying the cuticular conductance to water (Const.gcw) and CO2 (Const.gcc).

boundary_conducance

Replaces or adds equations related to the boundary layer conductance (GasEx.gbw) and leaf temperature derived from the energy balance equations (GasEx.TleafEB) with a version that is valid for a sample with no stomata. This is typically used when estimating GasEx.gbw using filter paper (Parkinson, 1985). Note that the leaf thermocouple (Meas.Tleaf) is used to estimate air temperature (and should therefore not touch the sample). This can be overridden by a custom equation. The sample emissivity (Const.eps), the ratio between heat and water conductance for the chamber air (Const.ra_rv) and the fraction of the area exchanging radiative and sensible heat (Const.asH) can be adjusted. For solving the energy balance equations, the method described by Bristow (1987) is used.

gm_fluorescence

Adds derived variables for mesophyll conductance (FLR.gm) and chloroplast CO2 mole fractions (FLR.Cc) based on gas exchange and chlorophyll fluorescence (Harley et al., 1992). It is strongly recommended to first calibrate the electron transport rates reported in the FLR.ETR column. In addition, the equations require adding columns for the respiration rate in the light (Const.RL), and the CO2 photo-compensation point (Const.GammaStar).

Isotope models

d13C

Adds derived variables related to the stable carbon isotope discrimination model for C3 plants (Farquhar and Cernusak, 2012; Evans and von Caemmerer, 2013) aimed at estimating the mesophyll conductance d13C.gm and chloroplast CO2 mole fraction (d13C.Cc). Requires additional columns with data on the carbon isotope composition in sample and reference air (d13CMeas.delta13CO2s; d13CMeas.delta13CO2r) and in the air where the plants were grown (d13CConst.delta13CO2g), and values for respiration in the light (Const.RL) and the CO2 photo-compensation point (Const.GammaStar).

d13C_dis

Requires the d13C flag, but modifies the modeled carbon isotope discrimination d13C.Deltai and d13C.gm using the assumption that the carbon pools of respiration and assimilation are disconnected (as described by Busch et al., 2020).

d13C_e_Busch2020

Requires the d13C flag, but modifies the calculation of the effective respiratory fractionation (d13C.ep) to better take into account the effect of the growth conditions (Busch et al. 2020). Additionally requires a value for the observed discrimination against 13CO2 under growth conditions (d13CConst.Deltag).

Instrument related calculations

These implement calculations as close as possible to those used in the instrument firmware and are typically related to the specific configurations or instrument design. In addition, some methods are provided for recalculating low-level instrument variables.

li6400

Definitions for boundary layer conductance, temperature, and light related variables (GasEx.gbw; GasEx.Rabs; GasEx.TairCnd; LeafQ.alpha) specific to LI-6400 / LI-6400XT instruments (LI-COR Biosciences Inc, 2011).

li6800

Definitions for boundary layer conductance, light, leakage, temperature and light related variables (GasEx.gbw; GasEx.Rabs; GasEx.TairCnd; LeafQ.alpha; LeafQ.Qin; LeafQ.Conv; Leak.Fan; Leak.CorrFact; GasEx.Ca) specific to the LI-6800 instrument (LI-COR Biosciences Inc, 2022).

ciras4

Light absorptance (LeafQ.alpha) and the conversion between photon flux density and irradiance (LeafQ.Conv) is calculated by taking into account the effect of the different light sources that can be used with the CIRAS-4 instrument (PP Systems, 2024).

gfs3000

Boundary layer conductance (GasEx.gbw) and light sensor (LeafQ.Qin) calculations adjusted for the default chamber of the GFS-3000 instrument (Heinz Walz GmbH, 2019).

gfs3000_light_bot

Requires gfs3000, but modifies LeafQ.Qin to indicate that the bottom light sensor of the default chamber was used to quantify the light intensity incident on the leaf (Heinz Walz GmbH, 2019).

match

Takes a previously stored offset between sample and reference analyzers into account when recalculating water and CO2 mole fractions (Meas.H2Os; Meas.CO2s) as described by LI-COR Biosciences Inc (2022), Heinz Walz GmbH (2019) and PP Systems (2024). The corrected mole fractions are already stored in the data and therefore this calculation is usually not required. However, these equations are needed when recalculating mole fractions from lower level data (see the raw and O2_correction flags).

raw

Recalculates CO2 and H2O mole fractions from such low-level variables (Meas.CO2r; Meas.H2Or; Meas.CO2a; Meas.H2Oa) as described by LI-COR Biosciences Inc (2022). Currently only implemented for the LI-6800 because low-level instrument data are required. Requires storing raw data and the availability of factory calibration files. Requires and enables the match set.

O2_correction

Recalculates CO2 and H2O mole fractions (Meas.CO2r; Meas.H2Or; Meas.CO2a; Meas.H2Oa) at a potentially different oxygen concentration ( Const.Oxygen). Currently only implemented for the LI-6800 (LI-COR Biosciences Inc, 2022) and GFS-3000 (K. Siebke, Heinz Walz GmbH, personal communication). For the LI-6800, this requires loading of factory calibration files (import_factory_cals()). Requires and automatically enables the match flag.

Value

A list of language objects with equations

References

See Also

read_6800_equations()

Examples

exampledir <- system.file("extdata", package = "gasanalyzer")

# import factory calibration for example data:
import_factory_cals(exampledir)

# read data from a txt file:
li6800 <- read_6800_txt(file.path(exampledir, "lowo2"))

# passing an invalid flags shows which flags are valid:
create_equations("help")

# create a default set of gas-exchange equations, for the 6800, but overwrite
# the default calculation of leaf light absorption with a custom value:
Eqs <- create_equations(c("default", "li6800"), LeafQ.alpha = \() {0.86})

#apply:
li6800_recalc <- recalculate(li6800, Eqs)

li6800$LeafQ.alpha
li6800_recalc$LeafQ.alpha

[Package gasanalyzer version 0.4.3 Index]