1,635
edits
Line 15: | Line 15: | ||
#Compiler: The SUM function can only be used once per chart | #Compiler: The SUM function can only be used once per chart | ||
#Wiki: Updates conform development (please notify voids or unclarities) | #Wiki: Updates conform development (please notify voids or unclarities) | ||
NOTE: | |||
#Because meteo-equations can reach a certain complexity (definitely when written on a single line) a change is considered which should make it possible to use Plotvariables as intermediate calculations or have a definition of partial equations (not plotted) which you might use in Plot. As an example (see the last chart below) One might consider calculating a dewpoint with the Actual Vapour pressure as an intermediate equation. | |||
#A second change which is considered is making the EVAL and STATS available for the RECENT parameters as well | |||
However, the side effects may be larger than expected so it requires some study. In the mean time : have fun! | |||
Below you find three test charts as examples to show what is now possible: | |||
CHART DailyTemp TITLE Temp with statistics offset 5 | |||
PLOT ALL AverageTemp colour pink | |||
PLOT ALL sumAverageTemp EVAL [ ln(Sum(AverageTemp-5)) ] COLOUR green AXIS DegreeDays | |||
STATS AverageTemp SMA COLOUR crimson | |||
EndChart Output Statistics.txt | |||
CHART DailyRain TITLE Rain with statistics | |||
PLOT ALL RainFall colour CornflowerBlue as column | |||
PLOT ALL sumRainFall EVAL [ exp(ln(SUM( RainFall))) ] COLOUR crimson AXIS Free | |||
STATS RainFall SMA colour green | |||
EndChart | |||
Chart MyDewPoint Title Dewpoint calculations in CDL | |||
Plot all minBarometer | |||
Plot all maxBarometer | |||
Plot All ActualVapourPressure Eval [ MinHumidity/100 * 6.112 * EXP(17.62*AverageTemp/(243.12+AverageTemp)) ] Axis Pressure | |||
EndChart | |||
==== Version 5.4.0 (21/05/2021)) ==== | ==== Version 5.4.0 (21/05/2021)) ==== |