cvs: pear /Services_Weather/Weather Metar.php
| From: | Alexander Wirtz | Date: | Mon, 06 Oct 2003 14:00:57 +0000 |
| Subject: | cvs: pear /Services_Weather/Weather Metar.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13421@lists.php.net to get a copy of this message | ||
eru Mon Oct 6 10:00:57 2003 EDT
Modified files:
/pear/Services_Weather/Weather Metar.php
Log:
*Added humidity and dewpoint calculation
Index: pear/Services_Weather/Weather/Metar.php
diff -u pear/Services_Weather/Weather/Metar.php:1.12 pear/Services_Weather/Weather/Metar.php:1.13
--- pear/Services_Weather/Weather/Metar.php:1.12 Mon Oct 6 06:52:59 2003
+++ pear/Services_Weather/Weather/Metar.php Mon Oct 6 10:00:57 2003
@@ -16,7 +16,7 @@
// | Authors: Alexander Wirtz <alex@pc4p.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Metar.php,v 1.12 2003/10/06 10:52:59 eru Exp $
+// $Id: Metar.php,v 1.13 2003/10/06 14:00:57 eru Exp $
require_once "Services/Weather/Common.php";
@@ -391,6 +391,7 @@
$dewPoint *= -1;
}
$weatherData["dewPoint"] = $dewPoint;
+ $weatherData["humidity"] =
$this->calculateHumidity($temperature, $dewPoint);
}
if (isset($weatherData["wind"])) {
// Now calculate windchill from temperature and windspeed