Determines the longest consecutive sequence of good-quality data, separately for GPP and LE. Short "interruptions" of bad-quality data are ignored as long as they don't exceed the given length threshold

fdk_get_sequence(
  df,
  site = "sitename",
  qc_threshold = 0.5,
  leng_threshold = 25,
  do_plot = FALSE,
  out_path = "data/tmp"
)

Arguments

df

data frame with daily FLUXNET-based data

site

a FLUXNET site name to process

qc_threshold

Threshold of the the QC information (fraction of good- quality half-hourly data used for daily aggregates).

leng_threshold

Threshold of interruptions of bad-quality data to be ignored. In days.

do_plot

boolean, whether to create plot, defaults to FALSE

out_path

the path where to store the plot

Value

A data frame containing information about the start date and end date of the longest sequence.