Skip Menu |

This queue is for tickets about the Geo-WeatherNOAA CPAN distribution.

Report information
The Basics
Id: 743
Status: new
Priority: 0/
Queue: Geo-WeatherNOAA

People
Owner: Nobody in particular
Requestors: anna [...] water.ca.gov
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: handling forecast areas for metropolitan area
We were quite enthusiastic about finding your module, Geo::WeatherNOAA when we first heard about it from the Perl E-Newsletter (by TechRepublic). We have a cooperative agreement with NOAA and put many of their products on our site at CDEC (http://cdec.water.ca.gov). We thought that by using your module, we could provide another way for our users to retrieve NOAA weather data. Alas, as I tested your module, I became aware of its inability to handle some of our "real-life" situations, though your test scripts worked fine. We happen to operate out of California and many of the zonal products for this state split up large metropolitan areas into several forecast areas. So for us, when we tried the following, we didn't get a forecast as expected. $ perl -MGeo::WeatherNOAA -e "print print_forecast('Sacramento','CA')"; Geo::WeatherNOAA.pm v.4.37 As of : $ So I looked at the actual zonal forecast to use the exact phrasing for the city and tried this, but to no avail. $ perl -MGeo::WeatherNOAA -e "print print_forecast('Downtown Sac','CA')"; Geo::WeatherNOAA.pm v.4.37 As of : $ Lastly, I tried truncating the name of the city and got a forecast, but it wasn't the right one. $ perl -MGeo::WeatherNOAA -e "print print_forecast('Sac','CA')"; Geo::WeatherNOAA.pm v.4.37 As of 4:00pm (PDT) Thu Jun 13, 2002: WARNING: Tonight: Clear. Lows in the upper 50s. South wind to 10 mph. Friday: Sunny. Highs in the lower 90s. South wind to 10 mph. Friday Night: Clear. Lows in the middle 50s. Light wind. Saturday: Sunny. Highs in the lower 90s. South wind to 10 mph. Saturday Night: Clear. In the upper 50s. Sunday: Sunny. Highs in the lower 90s. Monday Through Thursday: Dry. Lows lower 60s. Highs lower 90s. = $ The correct forecast for the city of Sacramento should be the following (from http://iwin.nws.noaa.gov/iwin/ca/zone.html). What was retrieved above was for the cities of Redding and Red Bluff (Northern Sacramento Valley). CAZ017-141130- SOUTHERN SACRAMENTO VALLEY- INCLUDING...SACRAMENTO 400 PM PDT THU JUN 13 2002 .TONIGHT...CLEAR. LOWS FROM THE LOWER TO MIDDLE 50S. SOUTH WIND 10 TO 15 MPH...DECREASING DURING THE NIGHT. .FRIDAY...SUNNY. HIGHS MID TO UPPER 80S. SOUTHWEST WIND 5 TO 15 MPH. .FRIDAY NIGHT...CLEAR. LOWS IN THE MIDDLE 50S. SOUTH WIND TO 10 MPH. .SATURDAY...CLEAR. HIGHS MID TO UPPER 80S. SOUTHWEST WIND TO 10 MPH. .SATURDAY NIGHT...CLEAR. LOWS IN THE MIDDLE 50S. .SUNDAY...SUNNY. HIGHS FROM THE UPPER 80S TO LOWER 90S. .MONDAY THROUGH THURSDAY...DRY. LOWS 50S. HIGHS MID 80S TO LOWER 90S. = $$ I was wondering if you'll be working on a bug fix. We would really like to use your module at some point in the future. Thanks in advance for your reply, Anna