Temperature (and humidity) measurement: Difference between revisions
From Cumulus Wiki
Jump to navigationJump to search
m (→Cumulus Calculated Parameters: dew point) |
|||
Line 82: | Line 82: | ||
==Cumulus Calculated Parameters== | ==Cumulus Calculated Parameters== | ||
See external Wiki or other sections of this Wiki for specific information on the values that Cumulus calculates: | See external Wiki or other sections of this Wiki for specific information on the values that Cumulus calculates: | ||
Line 89: | Line 90: | ||
*The dew point calculation for Cumulus 1 uses a third party library which uses the Davis dew point calculation '''dewpoint := tempinC + ((0.13 * tempinC) + 13.6) * Ln(humidity / 100)''' | *The dew point calculation for Cumulus 1 uses a third party library which uses the Davis dew point calculation '''dewpoint := tempinC + ((0.13 * tempinC) + 13.6) * Ln(humidity / 100)''' | ||
* The dew point calculation for MX follows the standard [https://en.wikipedia.org/wiki/Dew_point calculation in wikipedia]. | * The dew point calculation for MX follows the standard [https://en.wikipedia.org/wiki/Dew_point calculation in wikipedia] | ||
<pre>public static double DewPoint(double tempC, double humidity) | |||
{ | |||
//return tempC + ((0.13*tempC) + 13.6)*Math.Log(humidity/100.0); | |||
// Davis algorithm | |||
double lnVapor = Math.Log(ActualVapourPressure(tempC, (int) humidity)); | |||
return ((243.12 * lnVapor) - 440.1) / (19.43 - lnVapor); | |||
}</pre> | |||
Note this means that Cumulus 1 and MX log files have a continuity break when you migrate from one flavour to another. | Note this means that Cumulus 1 and MX log files have a continuity break when you migrate from one flavour to another. | ||