[Xfce4-commits] <xfce4-weather-plugin:master> Correct apparent weather Quayle-Steadman formula.

Harald Judt noreply at xfce.org
Thu Jan 10 16:34:04 CET 2013


Updating branch refs/heads/master
         to 8955d13b933f299cb15f964847fadd4c35caa5e9 (commit)
       from ee6750351e877b890a95b51d45525b804f94f0a1 (commit)

commit 8955d13b933f299cb15f964847fadd4c35caa5e9
Author: Harald Judt <h.judt at gmx.at>
Date:   Wed Jan 9 17:14:41 2013 +0100

    Correct apparent weather Quayle-Steadman formula.
    
    Nowhere in the documentation is written about any constraints to wind speed,
    so remove the wind speed check.

 panel-plugin/weather-data.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/weather-data.c b/panel-plugin/weather-data.c
index 2b33d43..b2c25fb 100644
--- a/panel-plugin/weather-data.c
+++ b/panel-plugin/weather-data.c
@@ -273,9 +273,6 @@ calc_apparent_temperature(const xml_location *loc,
         /* R. G. Quayle, R. G. Steadman: The Steadman wind chill: an
            improvement over present scales. In: Weather and
            Forecasting. 13, 1998, S. 1187–1193 */
-        windspeed *= 3.6;
-        if (windspeed < 4.828032)
-            return temp;
         return 1.41 - 1.162 * windspeed + 0.980 * temp
             + 0.0124 * windspeed * windspeed + 0.0185 * windspeed * temp;
     }


More information about the Xfce4-commits mailing list