Webtags (preserving history): Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
Line 1,302: Line 1,302:
==== Apparent Temperature and Feels Like ====
==== Apparent Temperature and Feels Like ====


Note this formula uses Celsius for temperature and metres per second for wind speed. You will need to do the appropriate conversions if you use different units.  Formula is same for Cumulus 1 and MX.
Note this apparent temperature formula uses Celsius for temperature and metres per second for wind speed. You will need to do the appropriate conversions if you use different units.  The Australian Apparent temperature formula is same for Cumulus 1 and MX:


var actualVaporPress = <#RecentHumidity h=3>/100) * 6.105 * Math.exp(17.27 * <#RecentOutsideTemp h=3>) / (237.7 + parseFloat(<#RecentOutsideTemp h=3>))));
var actualVaporPress = <#RecentHumidity h=3>/100) * 6.105 * Math.exp(17.27 * <#RecentOutsideTemp h=3>) / (237.7 + parseFloat(<#RecentOutsideTemp h=3>))));
Line 1,314: Line 1,314:
} </pre>
} </pre>


For temperatures '''above''' 20°C or 68°F it uses:
For temperatures '''above''' 20°C or 68°F it uses a different way to calculate apparent temperature that it uses at these higher temperatures (this formula only used for 3.6.10 onwards):
<pre>var actualVaporPress = (humVal/100) * 6.112* Math.exp((17.62*tempDegC)/(243.12 + tempDegC)) / 10.0;  // Not same as at build 3084
<pre>var actualVaporPress = (humVal/100) * 6.112* Math.exp((17.62*tempDegC)/(243.12 + tempDegC)) / 10.0;  // Not same as at build 3084
/* uses kilometres per hour for wind speed */
/* uses kilometres per hour for wind speed */
Line 1,322: Line 1,322:
AT= (1.04 * tempDegC) + (2 * actualVaporPress) - (0.1805553 * wind_km_h) - 2.7;</pre>
AT= (1.04 * tempDegC) + (2 * actualVaporPress) - (0.1805553 * wind_km_h) - 2.7;</pre>


For in-between temperatures it uses a more complicated formula where AT and WC are defined as above:
For in-between temperatures it uses a more complicated merge of the two formulas for AT and WC as defined above:
<pre>app_temp_mult = ( tempDegC - 10) / 10;
<pre>app_temp_mult = ( tempDegC - 10) / 10;
wind_chill_mult = 1 - app_temp_mult;
wind_chill_mult = 1 - app_temp_mult;
5,838

edits

Navigation menu