norm_diurnal_centroid: Normalized diurnal centroid calculation

Description Usage Arguments Details Value Normalized diurnal centroid algorithm Author(s)

View source: R/helpers.R

Description

Calculate the normalized diurnal centroid for sapflow variables

Usage

1
norm_diurnal_centroid(sapf_var, rad_var)

Arguments

sapf_var

A numeric vector containing the sapflow values for a day at a regular intervals. Missing values are allowed but not recommended.

rad_var

A numeric vector containing the incoming radiation for a day at a regular intervals. Missing values are allowed but not recommended. Must be the same length as sapf_var.

Details

The code for this function has been kindly provided by Jacob Nelson in python (see https://github.com/jnelson18/FluxnetTools/blob/master/FileS3.py) and has been translated to a tidy data phylosophy in R to be used inside a summarise statement.

Value

A numeric value with the normalized diurnal centroid value

Normalized diurnal centroid algorithm

This function calculates the diurnal centroid of sapflow measures relative to the diurnal centroid of incoming radiation (in any units). For that the incoming radiation diurnal centroid is substracted from the sapflow diurnal centroid:

Sapf_cent - IncomingRad_cent

Author(s)

Jacob Nelson & VĂ­ctor Granda


sapfluxnetr documentation built on Aug. 28, 2020, 1:13 a.m.