calibrate_ambient_water_linreg: calibrate_ambient_water_isotopes

View source: R/calibrate_ambient_water_isotopes.R

calibrate_ambient_water_linregR Documentation

calibrate_ambient_water_isotopes

Description

calibrate_ambient_water_isotopes

Usage

calibrate_ambient_water_linreg(
  amb_data_list,
  caldf,
  outname,
  site,
  file,
  filter_data,
  force_to_end,
  force_to_beginning,
  r2_thres
)

Arguments

amb_data_list

List containing ambient d18O/d2H datasets. Will include all variables in 000_0x0_xxm. (character)

caldf

Calibration data frame containing slope and intercept values for d18O and d2H values.

outname

Output variable name. Inherited from calibrate_ambient_water_linreg

site

Four-letter NEON code corresponding to site being processed.

file

Output file name. Inherited from calibrate_ambient_water_linreg

filter_data

Apply a median filter to output ambient data? inherited.

force_to_end

In given month, calibrate ambient data later than last calibration, using the last calibration? (default true)

force_to_beginning

In given month, calibrate ambient data before than first calibration, using the first calibration? (default true)

r2_thres

Minimum r2 value for calibration to be considered "good" and applied to ambient data.

Value

Nothing to environment; returns calibrated ambient observations to the output file. This function is not designed to be called on its own.

Author(s)

Rich Fiorella rfiorella@lanl.gov

Function called by calibrate_ambient_water_linreg to apply slope and intercept parameters to the ambient datasets (000_0x0_09m and 000_0x0_30m) to correct to the VSMOW scale. This function should generally not be used independently, but should be used with calibrate_ambient_water_linreg. Note that in this version NO CORRECTION FOR HUMIDITY is performed. Use with caution.


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