PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » Services_Weather » Bug #4929

Fractional visibility not parsed correctly

Details

Submitted2005-07-27 00:50 UTC
Fromdavephp at davepar dot com
AssignedEru
StatusClosed
PackageServices_Weather
PHP Version4.3.10
OSLinux
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