fit_carbon_regression
fit_carbon_regression(
ref_data,
method,
calibration_half_width,
plot_regression_data = FALSE,
plot_dir = "/dev/null",
site,
min_nobs = NA
)
Returns a data.frame of calibration parameters. If
method == "Bowling_2003"
, then data.frame includes
gain and offset parameters for 12CO2 and 13CO2, and r^2
values for each regression. If method == "linreg"
,
then data.frame includes slope, intercept, and r^2 values
for d13C and CO2 values.
Reference data.frame from which to estimate calibration parameters.
Are we using the Bowling et al. 2003 method ("Bowling_2003") or direct linear regression of d13C and CO2 mole fractions ("linreg")?
Determines the period (in days) from which reference data are selected (period is 2*calibration_half_width).
True or false - should we plot the data used in the regression? Useful for debugging.
If plot_regression_data is true, where should the plots be saved?
Needed for regression plots.
Minimum number of high-frequency observations to define a peak.
Rich Fiorella rfiorella@lanl.gov