After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 534047 - Some weather stations aren't in the METAR source file
Some weather stations aren't in the METAR source file
Status: RESOLVED FIXED
Product: libgweather
Classification: Core
Component: locations
2.23.x
Other All
: Normal normal
: future
Assigned To: libgweather-maint
libgweather-maint
: 578885 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-05-20 13:50 UTC by Marcin Banasiak
Modified: 2017-12-13 15:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Add Lodz to Locations.xml (541 bytes, patch)
2008-05-20 13:52 UTC, Marcin Banasiak
committed Details | Review
re-fix for lodz (1.47 KB, patch)
2009-03-04 14:28 UTC, Dan Winship
committed Details | Review

Description Marcin Banasiak 2008-05-20 13:50:44 UTC
Here is a patch that adds one more city from Poland to Locations.xml
Comment 1 Marcin Banasiak 2008-05-20 13:52:29 UTC
Created attachment 111230 [details] [review]
Add Lodz to Locations.xml
Comment 2 Dan Winship 2008-05-21 00:42:11 UTC
Odd... NOAA does have weather information for EPLL, but it doesn't appear in the canonical list of weather stations.... In fact, of the 6096 weather stations that have reported in the last 24 hours, 1/4 of them aren't listed in the station list!?
Comment 3 Dan Winship 2008-05-21 02:20:22 UTC
(In reply to comment #2)
> Odd... NOAA does have weather information for EPLL, but it doesn't appear in
> the canonical list of weather stations.... In fact, of the 6096 weather
> stations that have reported in the last 24 hours, 1/4 of them aren't listed in
> the station list!?

Ah, apparently most of these are ships or offshore oil platforms, which are listed in a separate document, or else they're classified military locations and we're not supposed to know where they are. :-)

There are still a few hundred real ones like EPLL that we're missing though.
Comment 4 Dan Winship 2008-06-18 19:14:05 UTC
Committed the patch for Lodz. I'm leaving the bug open because of the larger issue.
Comment 5 Dan Winship 2009-03-04 14:28:40 UTC
Created attachment 130017 [details] [review]
re-fix for lodz

This got broken with the Locations.xml.in rewrite. Too late to fix now for 2.26 (string freeze)
Comment 6 Dan Winship 2009-04-14 22:37:38 UTC
*** Bug 578885 has been marked as a duplicate of this bug. ***
Comment 7 Tobias Mueller 2009-05-18 23:00:37 UTC
Committed as d925141
Comment 8 Dan Winship 2009-05-18 23:05:39 UTC
as noted in comment #4, the larger issue still needs to be addressed
Comment 9 André Klapper 2009-05-19 07:59:31 UTC
This broke the string freeze.
Please revert or branch.
Comment 10 Tobias Mueller 2009-05-19 13:35:50 UTC
Oh, did it? I'm so sorry. I really thought we're out of that for weeks. I'm reverting the patch: 02cead8
I'm also resetting the status to accept-commit_after_freeze.
Comment 11 André Klapper 2009-05-19 13:49:11 UTC
We are out of a freeze for a module when the module has branched.
String freeze is forever in a stable series.
Comment 12 Frank Solensky 2010-02-09 05:34:15 UTC
Committing the patch again to development branch. The fix will be available in the next major software release shortly. Thank you for your bug report.
Comment 13 Frank Solensky 2010-02-09 05:36:02 UTC
Re-opening for the larger issue mentioned above
Comment 14 Bastien Nocera 2017-12-13 13:35:08 UTC
I've re-removed Lodz airport, as it doesn't export weather information anymore.

commit e30ae4b63017a72a145ccf4b394a039e3239fd9a
Author: Bastien Nocera <hadess@hadess.net>
Date:   Wed Dec 13 14:26:45 2017 +0100

    locations: Remove Łódź airport
    
    It no longer provides METAR information.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=534047

As for weather stations not being listed but being used, I don't think we have a canonical database for it. I've added a regression test that checks whether a weather station is listed in https://www.aviationweather.gov/docs/metar/stations.txt and I've had good luck trimming/replacing obsolete weather stations using that.

If somebody has a better idea of how to handle this, please file a new bug.

Marking as FIXED as Lodz was added to the database.
Comment 15 Piotr Drąg 2017-12-13 15:01:17 UTC
How do you check if an airport exports weather information? According to <http://en.allmetsat.com/metar-taf/poland.php?icao=EPLL>, Łódź-Lublinek still does.
Comment 16 Bastien Nocera 2017-12-13 15:29:01 UTC
Using the same URL libgweather uses:
$ wget -O- -q "https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=24&mostRecent=true&fields=raw_text&stationString=EPLL"
<?xml version="1.0" encoding="UTF-8"?>
<response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XML-Schema-instance" version="1.2" xsi:noNamespaceSchemaLocation="http://aviationweather.gov/adds/schema/metar1_2.xsd">
  <request_index>194375552</request_index>
  <data_source name="metars" />
  <request type="retrieve" />
  <errors>
    <error>Invalid field name(s) found: raw_text</error>
  </errors>
  <warnings />
  <time_taken_ms>0</time_taken_ms>
</response>

But, I ran it again and:
$ wget -O- -q "https://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=24&mostRecent=true&fields=raw_text&stationString=EPLL"
<?xml version="1.0" encoding="UTF-8"?>
<response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XML-Schema-instance" version="1.2" xsi:noNamespaceSchemaLocation="http://aviationweather.gov/adds/schema/metar1_2.xsd">
  <request_index>76331972</request_index>
  <data_source name="metars" />
  <request type="retrieve" />
  <errors />
  <warnings />
  <time_taken_ms>6</time_taken_ms>
  <data num_results="1">
    <METAR>
      <raw_text>EPLL 131500Z 13004KT CAVOK 01/M03 Q1012</raw_text>
    </METAR>
  </data>
</response>

I'll revert that patch I guess. I have no idea what this error means...
Comment 17 Piotr Drąg 2017-12-13 15:33:52 UTC
Thank you!