Average temperature: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m (added reference to NOAA style reports)
m (Adding mention of how Cumulus outputs average temperature)
Line 1: Line 1:
The average temperature for the day, as recorded in the [[dayfile.txt]], is calculated by Cumulus using samples of the temperature taken at 1-minute intervals (sometimes called the 'integration method'). (This assumes Cumulus is running continuously, if it has just been restarted, for some station types Cumulus will use the temperatures stored at the console logging interval for the period since Cumulus previously ran).  Each minute the new measurement is added onto the accumulator ''Total'' and increments by one the counter ''Samples'' in the [[today.ini]] log file. At rollover, the ''AvgTemp'' field in [[yesterday.ini]] holds the final integrated mean calculated by the quotient of Total over Samples in the old today.ini.
== Calculation ==
The average temperature for the day, is calculated by Cumulus using samples of the temperature taken at 1-minute intervals (sometimes called the 'integration method'). (This assumes Cumulus is running continuously, if it has just been restarted, for some station types Cumulus will use the temperatures stored at the console logging interval for the period since Cumulus previously ran).  Each minute the new measurement is added onto the accumulator ''Total'' and increments by one the counter ''Samples'' in the [[today.ini]] log file.  


This offers an alternative to the simple mean of the highest and lowest temperatures of the day, and can give a 'better' average in cases where the high or low temperature occurred for a relatively short period, so could skew the simple average. To compare the two, select ''This period'' from the '''view''' menu and by default it will show both the integrated mean and simple mean temperatures for yesterday when you click '''Update display'''. Although average temperatures are not available as webtags, the integrated mean temperature for each day is output to the monthly NOAA style report, and the highest and lowest integrated mean temperature for each month are output to the annual NOAA style report.
== Cumulus outputs ==
 
At rollover, the ''AvgTemp'' field in [[yesterday.ini]] holds the final integrated mean calculated by the quotient of Total over Samples in the old today.ini and the same average is written to [[dayfile.txt]]. Integrated average temperatures are available as webtags (but only for today and yesterday), the integrated mean temperature for each day and the month as a whole is output to the monthly NOAA style report, and the lowest, actual, and highest integrated mean temperature for each month are output to the annual NOAA style report.
Note that statistically, a median temperature could be used, this would require holding all the individual measurements for a day, ranking them in order of magnitude and quoting the central value in that list (again this means extreme values have less skewing effect) - Cumulus does not retain the every minute individual values and cannot calculate median. If you wanted to compare daily median and daily mean, you would need to analyse the monthly log file with an external package.


== Alternatives ==
This offers an alternative to the simple mean of the highest and lowest temperatures of the day, and can give a 'better' average in cases where the high or low temperature occurred for a relatively short period, so could skew the simple average. To compare the two, select ''This period'' from the '''view''' menu and by default it will show both the integrated mean and simple mean temperatures for yesterday when you click '''Update display'''.


Note that statistically, a median temperature could be used to avoid such skewing, this would require holding all the individual measurements for a day, ranking them in order of magnitude and quoting the central value in that list - Cumulus does not retain the every minute individual values and cannot calculate median. If you wanted to compare daily median and daily mean, you would need to analyse the monthly log file with an external package.


[[Category:Terminology]]
[[Category:Terminology]]

Revision as of 07:24, 1 July 2013

Calculation

The average temperature for the day, is calculated by Cumulus using samples of the temperature taken at 1-minute intervals (sometimes called the 'integration method'). (This assumes Cumulus is running continuously, if it has just been restarted, for some station types Cumulus will use the temperatures stored at the console logging interval for the period since Cumulus previously ran). Each minute the new measurement is added onto the accumulator Total and increments by one the counter Samples in the today.ini log file.

Cumulus outputs

At rollover, the AvgTemp field in yesterday.ini holds the final integrated mean calculated by the quotient of Total over Samples in the old today.ini and the same average is written to dayfile.txt. Integrated average temperatures are available as webtags (but only for today and yesterday), the integrated mean temperature for each day and the month as a whole is output to the monthly NOAA style report, and the lowest, actual, and highest integrated mean temperature for each month are output to the annual NOAA style report.

Alternatives

This offers an alternative to the simple mean of the highest and lowest temperatures of the day, and can give a 'better' average in cases where the high or low temperature occurred for a relatively short period, so could skew the simple average. To compare the two, select This period from the view menu and by default it will show both the integrated mean and simple mean temperatures for yesterday when you click Update display.

Note that statistically, a median temperature could be used to avoid such skewing, this would require holding all the individual measurements for a day, ranking them in order of magnitude and quoting the central value in that list - Cumulus does not retain the every minute individual values and cannot calculate median. If you wanted to compare daily median and daily mean, you would need to analyse the monthly log file with an external package.