CDL - EVAL: Difference between revisions

117 bytes added ,  16:33, 21 February 2023
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Introduction ==
== Introduction ==
'''The Equations are in BETA, by the nature of all possible combinations and the recursive parsing not all possible equations have been tested (haha)'''
'''The Equations are kind of in continuous BETA, by the nature of all possible combinations and the recursive parsing not all possible equations have been tested (haha)'''


The EVAL functions gives the possibility to modify a measurement and plot the result as a separate line. So theoretically one could plot the Dewpoint as a calculated derivative of the Temperature. Also the Growth Degree Days can be simply calculated. The effect of EVAL is that it is not required to transfer data if it can be derived from measurement. Only the measurement needs to be transferred.
The EVAL functions gives the possibility to modify a measurement and plot the result as a separate line. So theoretically one could plot the Dewpoint as a calculated derivative of the Temperature. Also the Growth Degree Days can be simply calculated. The effect of EVAL is that it is not required to transfer data if it can be derived from measurement. Only the measurement needs to be transferred.
Line 18: Line 18:


   Number := <Integer>[.[<Integer>]]
   Number := <Integer>[.[<Integer>]]
NOTE: The plotvariable MUST be from the range as defined for the PLOT i.e. ALL | DAILY | RECENT.


== Functions ==
== Functions ==
Line 32: Line 34:
     PLOT ALL AverageTemp EVAL [ SUM(AverageTemp-5) ] colour green Axis DegreeDays
     PLOT ALL AverageTemp EVAL [ SUM(AverageTemp-5) ] colour green Axis DegreeDays
   EndChart
   EndChart
[[Category:CumulusUtils]]


=== LN ===
=== LN ===
Line 43: Line 42:
The EXP function provides the power function for the base of the Euler number e.
The EXP function provides the power function for the base of the Euler number e.
It is implemented as the JavaScript ''Math.exp''.
It is implemented as the JavaScript ''Math.exp''.
[[Category:CumulusUtils]]