Advertisement
fingy

Humidex

Aug 8th, 2020
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. //*************************************************************************//
  2.  // calcul du point de rosée  (formule de Heinrich Gustav Magnus-Tetens)   //
  3.   Temp = Temperature/10;
  4.   Hum = Humidity/10;
  5.  
  6.   alpha = log(Hum / 100) + (17.27 * Temp) / (237.3 + Temp);
  7.   rosee = (237.3 * alpha) / (17.27 - alpha);
  8.  
  9.  
  10.  // calcul de l'indice humidex
  11.   humidex = Temp + 0.5555 * (6.11 * exp(5417.753 * (1 / 273.16 - 1 / (273.15 + rosee))) - 10);
  12.  
  13. //************************************************************************//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement