CDL - STATS: Difference between revisions

6 bytes added ,  08:04, 3 July 2022
m
Line 7: Line 7:
== Statistical functions ==
== Statistical functions ==
The STATS keyword requires a ''Plotvariable'' on which to apply the statistics and a method to apply and a statistical method to use.
The STATS keyword requires a ''Plotvariable'' on which to apply the statistics and a method to apply and a statistical method to use.
     STATS <[[Charts_Definition_Language_(CDL)#Plotvariables|Plotvariable]]> <Statistical method>
     STATS [ALL||DAILY|RECENT|EXTRA] <[[Charts_Definition_Language_(CDL)#Plotvariables|Plotvariable]]> <Statistical method>


The following statistical methods are available in the ChartsCompiler:
The following statistical methods are available in the ChartsCompiler:
Line 22: Line 22:


   CHART DailyRain TITLE Rain with statistics
   CHART DailyRain TITLE Rain with statistics
     PLOT ALL RainFall colour CornflowerBlue as column  
     PLOT ALL DayRain colour CornflowerBlue as column  
     PLOT ALL RainFall EVAL [ SUM( RainFall ) ] COLOUR crimson AXIS Free
     PLOT ALL SumDayRain EVAL [ SUM( DayRain ) ] COLOUR crimson AXIS Free
     STATS RainFall SMA colour green
     STATS ALL DayRain SMA colour green
   EndChart OUTPUT Statistics.txt
   EndChart
 


[[Category:CumulusUtils]]
[[Category:CumulusUtils]]