CDL - EVAL: Difference between revisions

424 bytes added ,  19:30, 28 May 2021
m
Line 23: Line 23:
The SUM function produces the sum of the Plotvariable from the first of january to the 31 of december after which it resets to zero. So it is a cyclic function!
The SUM function produces the sum of the Plotvariable from the first of january to the 31 of december after which it resets to zero. So it is a cyclic function!
When applied to the temperature this leads to the Growing Degree  Days, when applied to rain it leads to the yearly rainfall until the current day. For other variables it may have meaning or it may have not.
When applied to the temperature this leads to the Growing Degree  Days, when applied to rain it leads to the yearly rainfall until the current day. For other variables it may have meaning or it may have not.
At the moment there can be only one sum function per chart.


The following example shows the daily average temperature modified to the Growing Degree Days with an offset of 5 °C:
The following example shows the daily average temperature modified to the Growing Degree Days with an offset of 5 °C:
Line 33: Line 35:


[[Category:CumulusUtils]]
[[Category:CumulusUtils]]
=== LN ===
The LN function provides the [https://en.wikipedia.org/wiki/Natural_logarithm Natural Logarithm] (the logarithm on the basis of the Euler number e).
It is implemented as the JavaScript function ''Math.log''.
=== EXP ==
The EXP function provides the power function for the base of the Euler number e.
It is implemented as the JavaScript ''Math.exp''.