Calculate the normalized diurnal centroid for sapflow variables
A numeric vector containing the sapflow values for a day at a regular intervals. Missing values are allowed but not recommended.
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.
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
A numeric value with the normalized diurnal centroid value
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
Jacob Nelson & Víctor Granda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.