Home » Web Services » Services_Weather » Bug #4929
Fractional visibility not parsed correctly
Details
| Submitted | 2005-07-27 00:50 UTC |
|---|---|
| From | davephp at davepar dot com |
| Assigned | Eru |
| Status | Closed |
| Package | Services_Weather |
| PHP Version | 4.3.10 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-07-27 00:50 UTC] davephp at davepar dot com
Description:
------------
It seems that when a METAR contains a fractional visibility (e.g. "2 1/2SM") the script is only parsing the "1/2SM" and putting the "2" in "noparse". This is an example string that it has trouble with:
KGYY 262350Z 02010G20KT 2 1/2SM -TSRA BR BKN006 OVC010 21/20 A2983
Output:
...
[noparse] => 2
[visQualifier] => AT
[visibility] => 0.5
...
Test script:
---------------
I don't have a good test script for this.
Expected result:
----------------
[visibility] => 2.5