calibrate_standards_carbon: calibrate_standards_carbon

View source: R/calibrate_standards_carbon.R

calibrate_standards_carbonR Documentation

calibrate_standards_carbon

Description

calibrate_standards_carbon

Usage

calibrate_standards_carbon(
  cal_df,
  ref_df,
  f = 0.00474,
  r2_thres = 0.95,
  correct_bad_refvals = FALSE,
  site,
  refGas
)

Arguments

cal_df

Data.frame containing calibration parameters

ref_df

Data.frame containing reference gas measurements

f

Fraction of CO2 isotopologues that are not 12CO2 or 13CO2. Inherited from script calling this function.

r2_thres

Threshold for calibration regression to be used to calibrate standards data. Default is 0.95. Calibrated reference gas measurements occurring during calibration periods with r2 values less than r2_thres will be marked NA.

correct_bad_refvals

Should we correct known/suspected incorrect reference values in the NEON HDF5 files? (Default = FALSE).

site

Four letter NEON site code. Only used if correct_bad_refvals = TRUE.

refGas

One of "low", "med", or "high." Only used if correct_bad_refvals = TRUE.

Value

A data.frame having the same number of rows of cal_df, with additional columns added for calibrated CO2 mole fractions and d13C values.

Author(s)

Rich Fiorella rfiorella@lanl.gov


NEONiso documentation built on Sept. 20, 2023, 9:07 a.m.