compute_DWCI: Diurnal water:carbon index (DWCI)

Description Usage Arguments Value

View source: R/tea.R

Description

DWCI measures the probability that the carbon and water are coupled within a given day. Method takes the correlation between evapotranspiration (LE) and gross primary productivity (GPP) and calculates the correlation within each day. This correlation is then compared to a distribution of correlations between artificial datasets built from the signal of potential radiation and the uncertainty in the LE and GPP.

Usage

1
compute_DWCI(data, nrecday = 48, na_value = 0)

Arguments

data

data.frame of sub-daily timeseries with variables

Rg_pot

Potential radiation

ET

evapotranspiration or latent energy

GPP

ross primary productivity

VPD

vapor pressure deficit

NEE

net ecosystem exchange

ET_sd

estimation of the uncertainty of ET

GPP_sd

eestimation of the uncertainty of GPP

NEE_fall

Modeled net ecosystem exchange i.e. no noise

ET_fall

Modeled evapotranspiration or latent energy i.e. no noise

nrecday

integer: frequency of the sub-daily measurements, 48 for half hourly measurements'

na_value

numeric scalar: to replace NA values in correlation Defaults to 0.0 - i.e. no probability of correlation in DWCI.

Value

numeric vector length(data)/nrecday: diurnal water:carbon index (DWCI)


bgctw/etpart documentation built on Dec. 19, 2021, 8:49 a.m.