Skip to contents

indicates if fluxes should be discarded or replaced by 0 according to parameters set by user. flux_quality_lm is for the model of the lm family. flux_quality_exp is for the exponential model.

Usage

flux_quality_exp(
  slopes_df,
  conc_col,
  f_fluxid,
  f_slope,
  f_time,
  f_fit,
  f_cut,
  f_b,
  force_discard,
  force_ok,
  force_zero,
  rmse_threshold,
  cor_threshold,
  b_threshold
)

Arguments

slopes_df

dataset containing slopes, fluxID, and parameters of the exponential expression

conc_col

column with gas concentration

f_fluxid

column of ID for each measurement

f_slope

column containing the slope of each flux (as calculated by the flux_fitting function)

f_time

column containing the time of each measurement in seconds

f_fit

column containing the modeled data

f_cut

column containing the cutting information

f_b

column containing the b parameter of the exponential expression

force_discard

vector of fluxIDs that should be discarded by the user's decision

force_ok

vector of fluxIDs for which the user wants to keep the calculated slope despite a bad quality flag

force_zero

vector of fluxIDs that should be replaced by zero by the user's decision

rmse_threshold

threshold for the RMSE of each flux above which the fit is considered unsatisfactory

cor_threshold

threshold for the correlation coefficient of gas concentration with time below which the correlation is considered non significant

b_threshold

threshold for the b parameter. Defines a window with its opposite inside which the fit is considered good enough.

Value

same dataframe with added flag and corrected slopes columns