5,838
edits
Line 652: | Line 652: | ||
|- | |- | ||
|<#feelslike> | |<#feelslike> | ||
|Available only from version 3.5.4: A variant on wind chill, calculated using the JAG/TI formula used in the UK, USA, Canada etc. The formula of JAG/TI-2000 is: | |Available only from version 3.5.4: A variant on wind chill, calculated using the JAG/TI formula used in the UK, USA, Canada etc. The official formula of JAG/TI-2000 is: | ||
G(J) = 13,12+0,6215∗T−11,37∗(W∗3,6)0,16+0,3965∗T∗(W∗3,6)0,16(2.3)where air temperature, T, is in °C, is measured at 1.50 metres, and wind speed, W, is in m/s as measured at 10 metres. | G(J) = 13,12+0,6215∗T−11,37∗(W∗3,6)0,16+0,3965∗T∗(W∗3,6)0,16(2.3) where air temperature, T, is in °C, is measured at 1.50 metres, and wind speed, W, is in m/s as measured at 10 metres. | ||
MX uses a slightly different formula, it is dependent on temperature, and can be expressed in PHP as: | |||
if($temp_degC < 10) | |||
{ | |||
$feels_like = $wind_chill; | |||
}elseif($temp_degC > 20) | |||
{ | |||
$feels_like = $apparent_temp; | |||
}else{ | |||
$app_temp_mult = ($temp_degC - 10) / 10; | |||
$wind_chill_mult = 1 - $app_temp_mult; | |||
$feels_like = ($apparent_temp * $app_temp_mult) + ($wind_chill * $wind_chill_mult); | |||
} | |||
|- | |- | ||
|<#wetbulb> | |<#wetbulb> |
edits