Red Hat Bugzilla – Bug 479526
Weather Report gives wrong forecast for Portland-Hillsboro Airport
Last modified: 2009-01-17 09:34:43 EST
Description of problem:
The Weather Report panel applet gives the wrong forecast for Portland-Hillsboro Airport and Portland-Troutdale Airport in Oregon, USA.
The problem is that Locations.xml has the wrong zone for both.
These locations are in zone 6, not zone 4.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add Weather Report applet to Gnome panel.
2. Configure location to be Portland-Hillsboro Airport, Oregon, USA.
Forecast for Oregon zone 4.
Forecast for Oregon zone 6.
Snippets from file:///usr/share/libgweather/Locations.xml
In fixing my version of Locations.xml, I noticed that there are other incorrect forecast zones in it, and that some locations have no zone (and thus no forecast).
Would it be better to repurpose this bug to address incorrect and missing forecasts generally?
I haven't been able to find a US NWS page that lists the forecast zone for each station. Commercial sites report the zone, so there must be a way.
Here is the best I can come up with:
The NWS has a shapefile with all US forecast zones.
Quantum GIS can read and display this file as a map without any problems.
By importing the stations, it is possible to visually correlate their locations with the NWS forecast zones. I have already found that two stations are in the water (KEYW, KSTT). I don't know how to automate this.
NB: QGIS has a plugin to import delimited text files, however it cannot handle the lat/lon format in nsd_cccc.txt, so they have to be converted by running build-locationdb.pl. The stations table is then exported from locationdb.sqlite. (I used the excellent SQLite Manager plugin for Firefox.)
BTW, using lat/lon rather than zones, as suggested here, seems like a good idea.
I have parsed Locations.xml and converted the location tags to a delimited text file for import into QGIS. This makes it possible to more quickly visually correlate the station locations and zones from Locations.xml with the NWS zones shapefile.
Based on spot checks, Locations.xml has numerous errors. Here are three more.
KBNO|ORZ022|Burns Municipal Airport|boi|43.595000|-118.956389
Should be ORZ061 http://weather.noaa.gov/pub/data/forecasts/zone/or/orz061.txt
KEWB|MAZ017|New Bedford Regional Airport|bos|41.675278|-70.956944
Should be MAZ020 http://weather.noaa.gov/pub/data/forecasts/zone/ma/maz020.txt
Should be HIZ002 http://weather.noaa.gov/pub/data/forecasts/zone/hi/hiz002.txt
Oakland zone should be changed (comment #4)