quality assessment for the slopes estimated by flux_fitting
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.
flux_quality_exp( slopes_df, conc_col, f_fluxid, f_slope, f_time, f_fit, f_cut, f_b, force_discard, force_ok, rmse_threshold, cor_threshold, b_threshold )
slopes_df
: dataset containing slopes, fluxID, and parameters of the exponential expressionconc_col
: column with gas concentrationf_fluxid
: column of ID for each measurementf_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 secondsf_fit
: column containing the modeled dataf_cut
: column containing the cutting informationf_b
: column containing the b parameter of the exponential expressionforce_discard
: vector of fluxIDs that should be discarded by the user's decisionforce_ok
: vector of fluxIDs for which the user wants to keep the calculated slope despite a bad quality flagrmse_threshold
: threshold for the RMSE of each flux above which the fit is considered unsatisfactorycor_threshold
: threshold for the correlation coefficient of gas concentration with time below which the correlation is considered non significantb_threshold
: threshold for the b parameter. Defines a window with its opposite inside which the fit is considered good enough.same dataframe with added flag and corrected slopes columns
Useful links