flux_lrc: Standardizes CO2 fluxes at fixed PAR values

View source: R/flux_lrc.R

flux_lrcR Documentation

Standardizes CO2 fluxes at fixed PAR values

Description

[Experimental] Calculates light response curves for CO2 fluxes and standardizes CO2 fluxes according to the LRC

Usage

flux_lrc(
  fluxes_df,
  type_col,
  par_ave = par_ave,
  f_flux = f_flux,
  lrc_arg = "LRC",
  nee_arg = "NEE",
  er_arg = "ER",
  lrc_group = c(),
  par_nee = 300,
  par_er = 0
)

Arguments

fluxes_df

a dataframe containing NEE, ER and LRC measurements

type_col

column containing type of flux (NEE, ER, LRC)

par_ave

column containing the PAR value for each flux

f_flux

column containing flux values

lrc_arg

argument designating LRC fluxes in type column

nee_arg

argument designating NEE fluxes in type column

er_arg

argument designating ER fluxes in type column

lrc_group

character vector of columns to use to group the LRC (campaign, site, treatment), if applicable

par_nee

PAR value to correct the NEE fluxes to

par_er

PAR value to correct the ER fluxes to

Details

The light response curves are calculated with a quadratic of the form flux(PAR) = a * PAR2 + b * PAR + c

Value

the same dataframe with the additional column PAR_corrected_flux

Examples

data(co2_fluxes_lrc)
flux_lrc(
fluxes_df = co2_fluxes_lrc,
type_col = type,
par_ave = PAR_ave,
f_flux = f_flux,
lrc_arg = "LRC",
nee_arg = "NEE",
er_arg = "ER",
lrc_group = c("warming"),
par_nee = 300,
par_er = 0
)

fluxible documentation built on June 25, 2025, 1:08 a.m.