CDL - EVAL: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
(Created page with "== Introduction == The EVAL functions gives the possibility to modfy a measurement and plot the result as a separate line. So theoretically one could plot the Dewpoint as a ca...")
(No difference)

Revision as of 14:50, 22 May 2021

Introduction

The EVAL functions gives the possibility to modfy 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.

To be able to accomplish the calculations, on e needs certain additional functions such as SUM, LN and EXP. The functions which are available to the user are described below. The list will grow as the functions become available.

Each equation is formulated between square brackets and is meant to modify a weather variable. Available to the user are functions, the weather variables and the mathematical operators +, -, * and /.

Functions

SUM

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.

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

 CHART GrowingDgreeDays TITLE TempSum with offset 5
   PLOT ALL AverageTemp colour CornflowerBlue as column
   PLOT ALL AverageTemp EVAL [ SUM(AverageTemp-5) ] colour green Axis DegreeDays
 EndChart