J'aimerais comprendre le calcul de la valeur de windchill dans mysqlweather.php.
Voici le code en question:
Code : Tout sélectionner
//Windchill calculation
$data["WindSpeed"]=$data["WindSpeed"]*3.6;
if (($data["OutdoorTemp"]<5)&&($data["WindSpeed"]>5))
{
$data["WindChill"]=13.12+0.6215*$data["OutdoorTemp"]-11.37*pow($data["WindSpeed"],0.16)+0.3965*$data["OutdoorTemp"]*pow($data["WindSpeed"],0.16);
}
else $data["WindChill"]=$data["OutdoorTemp"];