fdk_get_sequence: Get sequence of good-quality data

View source: R/fdk_get_sequence.R

fdk_get_sequenceR Documentation

Get sequence of good-quality data

Description

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

Usage

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.


computationales/flux_data_kit documentation built on Feb. 23, 2025, 8:19 p.m.