Slashdot Mirror


Weather Data Available in XML

wombatmobile writes "Wired reports the National Oceanic and Atmospheric Administration this week began providing weather data in an open access XML format. Previously, the data was technically available to the public, but in a format that's not easily deciphered. How will the free and easy availability of valuable data like this in XML affect the development of the web? One example is Tom Groves SVG weather. This type of visualization of XML data is about to fall within easy reach with nothing more than a text editor required as an authoring tool. From March 2005 SVG becomes part of the standard Mozilla/FireFox build. As an example of how web standards are supposed to work, what more could you hope to find?" We mentioned the policy change a few days ago.

44 of 198 comments (clear)

  1. If it crashes.... by stfvon007 · · Score: 4, Funny

    Do we get the blue sky of death?

    --
    All misspellings and grammatical errors in the above post are intentional and part of my artistic expression.
  2. Why SOAP by bigberk · · Score: 3, Insightful

    Can't the XML files just be fetched by HTTP ? Why introduce that SOAP layer? I mean, can't I just wget .../BOS.xml or something?

    1. Re:Why SOAP by aluminum+boy · · Score: 4, Informative

      SOAP, being XML, is available via http. Anything available in SOAP can be opened / viewed as XML in most browsers.

    2. Re:Why SOAP by yelvington · · Score: 2, Informative

      The referenced URL provides access to quite a bit of detailed forecast information. If all you want is current weather observations, you can get that in RSS or the Weather Service's own XML format without the bothersome overhead of SOAP or WSDL. See this page:

      http://www.nws.noaa.gov/data/current_obs/seek.ph p? state=&Find=Find

    3. Re:Why SOAP by jdludlow · · Score: 4, Interesting

      SOAP uses HTTP as a transport layer option (usually). The reason why the added complexity is worth it is because it allows client applications to do things like "float temp = weatherSerivce.getTemp(cityID);" much more easily. (Note: I completely made up that example, but it's similar to what would actually be used.) The point is that the client doesn't really have to know and/or care that "weatherService" isn't a local call. The client also doesn't need to care that it's running Java locally and the server is running .NET (or whatever else it might be using).

      SOAP is just a piece of the larger and much more complicated Web Services unbrella. Understanding all of the specs involved is a huge task, but you can do some client-side tutorials that will explain quite a bit of the basics anyway. Most of the real work is done on the server, so if you ignore that bit of it to start with, the learning curve isn't anywhere near as steep. The Apache Axis project is a decent starting point, if you just want to play around with the technology. Installing Axis into Tomcat is about a minutes worth of effort, then you can spend hours exploring the various documents, examples, and tutorials.

    4. Re:Why SOAP by batkiwi · · Score: 3, Informative

      Because it's meant to be used by programs that do processing on the data, not simply aggregators.

      By using SOAP, I can use php/java/c++ and simply bind to their services isntead of having to roll my own weather-xml->object (or hashtable, or whatever) converter.

      This is not for you to just hit with your browser/wget/whatever to stick weather on your webpage (although you can do that, it's easy if you post the right data), it's to allow you to write your own application that does whatever it wants with the data in an easy manner.

      It's not flat xml files based on city as per your example because that wouldn't make any sense. If you read through their api's there's a lot of data you can get based on long/lat or weather station id or........

    5. Re:Why SOAP by mkgray · · Score: 2, Interesting

      As others have pointed out, they do have RSS feeds, but that's not quite the same as a straight HTTP interface to the same queries they expose via SOAP.

      I wrote a gateway. I wrote a simple description of the HTTP interface gateway to the NOAA SOAP interface on my site.

  3. The question is..... by BorisSkratchunkov · · Score: 5, Funny

    weather or not I'll use it.....

    I'm sorry, I'm sorry....it's another bad pun....I seriously need to talk to a psychologist about my BPS (Bad Pun Syndrome or Backup Power Supply, which ever you prefer).

    1. Re:The question is..... by daeley · · Score: 4, Funny

      I hate to rain on your parade, but your attempts to cloud the issues takes a hail of a lot of guts. What are you, three sleets to the wind? It snow wonder you're sorry!

      --
      I watched C-beams glitter in the dark near the Tannhauser gate.
  4. Re:What's my lat and alt? by bigberk · · Score: 4, Funny
    The XML requires latitude and altitude...
    OK, you're going to need: (1) a compass, (2) a stopwatch with a second hand, and (3) an astrolabe.

    ...or just look it up in a reference book
  5. Re:What's my lat and alt? by ewithrow · · Score: 3, Informative
  6. Re:What's my lat and alt? by Anonymous Coward · · Score: 5, Informative

    Click on a city in your area on this site: http://www.timeanddate.com/worldclock/custom.html? continent=namerica The page for each city lists the coordinates.

  7. Extension for Firefox by FiReaNGeL · · Score: 4, Informative

    Don't miss out the wonderful WeatherFox extension for Firefox... crafteh coded this marvel after a suggestion of mine on Mozillazine Forums. International Forecast in your statusbar. Can't beat that!

    1. Re:Extension for Firefox by MP3Chuck · · Score: 4, Informative

      Except that now it's ForecastFox. Apparently there was some conflict with the website www.weatherfox.com (people going to weatherfox.com looking for WeatherFox extension support 'n stuff).

    2. Re:Extension for Firefox by FiReaNGeL · · Score: 2, Funny

      Looks like Firefox trend of changing names extend even to plugins :) But WeatherFox sounds better in my opinion... which is sad :(

  8. NOAA? by MP3Chuck · · Score: 4, Funny

    Finally, a *AA action we can be happy about!

  9. Re:What's my lat and alt? by Davak · · Score: 4, Informative

    Yeah, you are right... that's the only information I need to chunk out a quick program running off the feed.

    Speaking of the feed...here's the URL that contains the actual XML information:
    http://www.nws.noaa.gov/forecasts/xml/


    I guess they didn't post it on the front page to decrease the slash effect.

  10. OpenGIS does this too. by EmbeddedJanitor · · Score: 2, Interesting
    This is a trend. OpenGIS has proposed open XML data for a while. Hopefully a lot more data will be exposed this way, making true "internet apps" in the future.

    --
    Engineering is the art of compromise.
  11. Weather or not by Tim_F · · Score: 2, Funny

    old people in Korea will make use of it is the only real question here.

    In Korea only old people know thier latitude and longitude.

  12. Next step, better forecasting by Eric+Giguere · · Score: 4, Funny

    It'll be easier to parse, but it won't be any more accurate.

    Eric
    1. Re:Next step, better forecasting by LiquidCoooled · · Score: 5, Funny

      The NOAA today started releasing accurate targeted weather data in XML format to a wide audience.
      However unfortunately, because of a large slashdotting, you cannot get todays weather until tomorrow.
      Several planned hurricanes were put on hold for a few days because of the disruption.
      Impatient internet users were caught and fined for illegally downloading and sharing todays weather. One user had a large tornado and numerous thunderstorms on his server.

      --
      liqbase :: faster than paper
  13. Meanwhile, other governments still charge.. by mumblestheclown · · Score: 3, Informative
    Meanwhile, other, shortsighted governments, including most European ones, still largely charge for basic weather information.

    This leads to two perverse situations:

    1. (small aircraft) Pilots and (small craft) boaters are put in the unfortunate place of balancing their personal safety against a few dollars in such a way that would never be tolerated if we were talking about automobiles and trains.
    2. often, european users of weather data rely on US-taxpayer funded US weather info for their own countries. of course, since the emphasis is not so much, this info and forecasts are not as detailed or thought through as those that their own governments (or hastily privatized equivalents) produce daily. It's one thing that the US is doing right.
    1. Re:Meanwhile, other governments still charge.. by lukewarmfusion · · Score: 4, Informative

      NOAA servers contain much more weather info than just US states and territories; my program was pulling down everything from Afghanistan to Zimbabwe. Which was good for me - the site was designed for world travelers.

    2. Re:Meanwhile, other governments still charge.. by ragnar · · Score: 2, Interesting

      I had a friend who worked with the National Weather Service at the Department of Agriculture. You might find his explanation of this service interesting. He was often called upon to verify or negate rumors about blizzards or various weather calamities that may have been perpetuated by rivals. In effect, a banana exporter may find it profitable if people think the supply is in danger from foul weather. His group made sure that US importers didn't pay any fraudulent premiums by monitoring weather around the world, not just in the United States.

      --
      -- Solaris Central - http://w
    3. Re:Meanwhile, other governments still charge.. by Anonymous Coward · · Score: 2, Informative

      Two comments here:

      (1) In fact pilots get weather information for free in the UK.

      (2) And if pilots did have to pay, wouldn't that be right? Somebody has to pay, in order for the service to exist: why should the general taxpayer subsidise the hobbies of people who are so insanely rich that they can afford to fly aeroplanes for fun?

  14. To make it "work" in Firefox... by b00m3rang · · Score: 3, Informative

    Follow these directions: http://plugindoc.mozdev.org/windows1.html

    So far all it's managed to do is make Firefox use 100% CPU, and not much else. Let me know if you have better luck.

    IE just crashes.

  15. Weather Market by Doc+Ruby · · Score: 4, Interesting

    I want to see independent organizations datamining the NOAA weather data, running their own models, and making competing predictions. Then I want to see metaminers generating comparative "batting averages", keyed to current conditions, and get my weather forecasts from a client which knows which service is better at predicting the next few days/weeks/months starting with current conditions. That will give weather stenographers like the Weather Channel, and their TV news echo chamber, a real run for their money. Forecast@Home, anyone?

    --

    --
    make install -not war

    1. Re:Weather Market by iammaxus · · Score: 2, Informative

      I don't think the NOAA is publishing the raw data, so competing predictions would not really be possible.

  16. Tie to geolocation and it gets interesting :-) by Space+cowboy · · Score: 2, Interesting

    Not that I have anything to do with a geolocation project, you understand [grin]

    I did a pilot test for the Weather Xchange folks a couple of years back, and was monitoring the temperatures around the UK and making mpeg movies of location-averaged temperature snapshots - a bit like time-lapse photography. I've just moved to the US and the computer with the movies is on a ship somewhere, but it did look pretty cool (no pun intended :-) to see patterns of hot and cold move around the country over time...

    Simon.

    --
    Physicists get Hadrons!
  17. URL for HTTP-fetchable XML by ErichTheWebGuy · · Score: 4, Informative

    http://weather.gov/data/current_obs/seek.php

    The URL points to the RSS versions of the XML feeds. These have actually been available for quite some time.

    --
    bash: rtfm: command not found
  18. What other free data is out there? by chrisspurgeon · · Score: 2, Interesting

    This makes me think, there must be piles of academic and government-funded data out there free for the taking. Sure would be nice if there was some central listing of sources of free data. Anyone ever come across anything like that?

    1. Re:What other free data is out there? by s7uar7 · · Score: 2, Interesting

      This Google search (filetype:xml site:.gov) turns up a whole bunch of files, so there's definitely a lot out there, same with a .edu search. It just needs someone to check what it all is. This isn't meant as a 'Google is your friend' post by the way, I was just interested to see.

  19. Re:SVG plugin for firefox? by g_braad · · Score: 4, Informative

    You need to recompile Firefox yourself or download the older 0.8 release from Mozilla.org which has SVG enabled.

    http://mozilla.org/projects/svg/

    another solution is to install svgview from adobe, like the 6.0 beta 1 and coppy the plugin files found in /progra~1/common files/adobe/adobe viewer 6/plugins/np* to the plugins dir from firefox (ofcourse only on windows).

    if you want to use the mozilla implementation of SVG, recompile is the only solution for now. is there someone out there who would be willing to create this so-called 'patch'?

    --
    F/OSS & IT Consultant
  20. weather.com been doing this for a while by Fishstick · · Score: 5, Informative
    I set up a little script a long time ago to get weather data from an XML feed from the weather channel for our office webcam. It's free and was really easy to use...

    http://www.weather.com/services/xmloap.html?
    #!/usr/local/bin/perl -w
    require LWP::UserAgent;
    use XML::DOM;
    use CGI qw(:standard);
    # first, get the XML feed
    my $ua = LWP::UserAgent->new(env_proxy => 1, keep_alive => 1, timeout => 30);
    my $base_url="http://xoap.weather.com/weather/local/6 0143?cc=*&prod=xoap";
    my $par="&par=[removed]";
    my $key="&key=[sign up to get one]";
    $response = $ua->get("$base_url$par$key");
    die "Error while getting ", $response->request->uri,
    " -- ", $response->status_line, "\nAborting"
    unless $response->is_success;
    my %weather = %$response;
    # then, parse out the crap we want
    my $parser = XML::DOM::Parser->new();
    foreach(keys %weather){
    $xmldoc = $parser->parse($weather{$_}) if(/content/);
    }
    foreach my $cur_cond ($xmldoc->getElementsByTagName('cc')){
    $curr_cond{'lastup'} = $cur_cond->
    getElementsByTagName('lsup')->item(0)->
    getFirstChild->getNodeValue;
    $curr_cond{'obsvst'} = $cur_cond->
    getElementsByTagName('obst')->item(0)->
    getFirstChild->getNodeValue;
    $curr_cond{'temp'} = cur_cond->
    getElementsByTagName('tmp')->item(0)->
    &nb s p; getFirstChild->getNodeValue;
    $curr_cond{'chill'} = $cur_cond->
    getElementsByTagName('flik')->item(0)->
    getFirstChild->getNodeValue;
    $curr_cond{'text'} = $cur_cond->
    getElementsByTagName('t')->item(0)->
    getFirstChild->getNodeValue;
    $curr_cond{'icon'} = cur_cond->
    getElementsByTagName('icon')->item(0)->
    getFirstChild->getNodeValue;
    }
    print header;
    print start_html("nice little cgi page to display the time/weather");
    print <<EOF;
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p >
    <p><font size="-1">WebCam is located on 9th floor in Itasca<br />
    pointed out southeast window overlooking Thorndale</font></p>
    <form name="clock" onSubmit="0">
    <input type="button" name="face" size=13 value="">
    </form>
    EOF
    print end_html;


    sorry about the atrocious formating - slashcode made me take out whitespace (what is the fricking point of an ecode tag supported if you can't post a small snippet like this without removing all the whitespace!?)

    --

    There is much cruelty in the universe, John.
    Yeah, we seem to have the tour map.

    1. Re:weather.com been doing this for a while by Fishstick · · Score: 2, Funny

      Well, yeah -- but there's a story that goes with this.

      Coupler years ago I found myself on the sucky end of a reorg where I ended up working for this dweeb in Orlando (I'm in Chicago) where he would always do annoying things like ask what the weather was in Chicago and then spend 10 minutes talking about how it was 70 in January in Florida and he couldn't understand how anyone could stand 20 degree weather and then go on to blather about how he had gone fishing and caught fish and cooked them and on and on.

      I had already set up a camera on my workstation long ago for netmeetings and I had occasionally pointed it out the window to show what the weather was like and the traffic down on the tollway below or the little driving range that is across the office park.

      For some reason I got off the phone one day with this guy and decided I didn't want to get any work done for the rest of Friday afternoon and went about setting my camera up as a webcam (I used webcam2000 and then just set up a frames page on my webserver to include the image from the little port 8080 server that webcam2k runs).

      "There, now the asshole can bring this up and take a look at the weather instead of asking me every time he calls!" I told my cube farm neighbors (who didn't work *for* him but still had to deal with his shit on a daily basis).

      Next time he was on a call and asked about the weather, I told him what URL to use. Backfired. "Oh, looks really cold! What is it, like 20 below, bet even worse with the wind chill, huh?"

      So, I wasted another hour or so in frustration (not because I needed to, but because it made me feel a little better) working on the webcam page to download the weather.com feed to show the current temp, wind, conditions, forecast and all that shit.

      "Fucker, now he can just look at that and doesn't have to fukin ask me about the shitty weather in Chicago as a prelude to talking about how much he likes living in Florida and about his boat and what kind of fucking fish he caught last weekend and how he cooked it and what kind of beer he had with it and how could anyone live somewhere like Chicago where it's cold and you can't spend weekends in the Gulf fishing and drinking beer and getting fucked up the ass with a fishing pole. Fucker."

      He still asked me about the weather every fucking day until I quit.

      --

      There is much cruelty in the universe, John.
      Yeah, we seem to have the tour map.

  21. Re:What's my lat and alt? by orangenormal · · Score: 3, Informative

    You can also get XML feeds from specific weather stations at http://www.nws.noaa.gov/data/current_obs/ (Not lat and long required; just the station name) Now to wait until the Canadian government does the same thing...

  22. METAR isn't that bad by ari_j · · Score: 2, Interesting

    Previously, the data was technically available to the public, but in a format that's not easily deciphered.

    Presuming that this is a METAR replacement, then the format that was "not easily deciphered" is not really that bad at all. For the stuff that anyone reading Slashdot from under FL180 cares about, it's downright human-readable.

    Of course, if my presumption is wrong (the article didn't appear clear at first glance) and this is for predictions of future weather rather than reports of current weather, then ... neat. :)

  23. DOC format is better than XML. by rice_burners_suck · · Score: 2, Funny

    I don't want my damn weather information in XML format. I want it in Microsoft Word format. That is an open format with lots of documentation, and it will never go out of style. XML is complicated, proprietary, and secret, and if you put your data into this format, chances are that you will be locked in to a particular vendor, and if your vendor goes out of business, you will have essentially lost all of your valuable data.

  24. Maybe just read the forecast details by jesterzog · · Score: 2, Interesting

    It'll be easier to parse, but it won't be any more accurate.

    I think it depends on your definition of accuracy. For me at least, I don't usually bother with the specific predictions for anything more than this afternoon, and then usually only having checked what that forecast is based on. I think specific predictions are only provided to satisfy the people who demand definite and specific information without detail and regardless of accuracy, anyway. If you don't judge weather reports by the exact timing of events, and instead utilise the information they can provide about what's actually going on in the weather system, you might find them to be much more trustworthy and useful.

    I think the most useful part of weather reports is the contextual information provided with satellite pictures and diagrams about where all of the fronts, high and low pressure zones, and so on, happen to be. It's not always possible to predict when a particular front will roll over causing a thunderstorm, but it's often possible to predict that it'll happen at about the time a high pressure zone has moved out of the way to let it through, which might be quite likely to happen "within a day", for instance.

    Changeability of weather varies in different parts of the world, and perhaps we get a lot more of this information here than is handed out in other parts of the world. (New Zealand is apparently one of the more volatile areas in terms of changing weather.) Unfortunately the only overseas weather reports I'm familiar with are global reports on international TV channels like CNN, and they give virtually no contextual information besides current weather and temperature.

    Are local reports in other places much more detailed about the actual weather system, or do they just dish out specifics without context day after day?

  25. Re:What's my lat and alt? by opec · · Score: 2, Interesting

    I don't get it. I've been using this service for MONTHS now.

    Mine: http://www.nws.noaa.gov/data/current_obs/KBWG.rss

  26. Just a note by Anonymous Coward · · Score: 2, Interesting

    This info has been available since earlie this year. I have been running programs taking advantage of both the NDFD's 7 day forecast available via soap and NWS's current obs available by regular xml over http. NOAA really does alot of neat things and works hard to make them publically usable. Glad this came up.

    Nothing of importance to add, just that NOAA is working to make this stuff work for everyone (hence see the wed story about noaa going vendor non-specific).

  27. Sorry for posting on the political details, but by Dachannien · · Score: 2, Interesting

    Quoth the Wired article:

    Weather-industry companies were promoting the idea that the government restrict special interests that have the ability to pay for the data -- like Major League Baseball teams or citrus growers -- from acquiring it for free, [Barry Myers, Exec VP of AccuWeather] said.

    But isn't fair and equal access to information something the government *should be* supporting? Who cares if MLB or the citrus industry get weather info for free? If, as a side effect of providing weather info to the general public, MLB is able to improve their entertainment value and US citrus farmers are able to improve their crop, isn't that a bonus? It's virtually impossible to subsidize industry in this WTO day and age, so indirect (and free!) benefits like this are a good thing.

  28. This IS the Semantic Web by CC12123 · · Score: 2, Interesting
    I've seen a lot of hating on the Semantic Web the past few weeks, but a lot of support when things like this come out. If you check out the definition of the Semantic Web, you'll find:
    The Semantic Web provides a common framework that allows data to be shared and reused across application, enterprise, and community boundaries.

    This is exactly what NOAA did with their weather data. It is a common misconception that the Semantic Web is supposed to be some gigantic cross-reference, or that AI weenies think it will solve all of our problems. Imagine a web where everyone publishes data in a common format, and everything can be re-used. Want to drop weather data into your app? Just add a few lines of code. Now that's powerful.
  29. The Weather Channel Already Does This by randyjparker · · Score: 2, Interesting
    It is called the Global Forecast Center (GFC), and it includes the use of a system called Dicast.

    For the last 25 months, TWC has produced its own forecasts by doing pretty much what the parent suggests: using its own computers to compare the current forecasts of the 'first principal' weather simulations produced by government supercomputers. The GFC then weights the forecast of each model by its historical accuracy for the weather situation it is modeling at each location, and produces a 'meta-forecast' for that loc.

    Dicast was produced largely through US Government funding, but TWC has also spent very large sums of its own money to finish it up. I beleive TWC is the only private company to help fund Dicast development.

    TWC first implemented Dicast for on-air / web forecasts when you saw the new "Global Forecast Center" background on their studio TV set. That moniker was not some puffed-up marketing. The GFC (using Dicast) is a very big deal, and nobody else supplies forecasts from it. The shift from NWS forecasts to GFC forecasts took years to implement, and impacted dozens of TWC internal systems. Here is the offical realese from 11/11/2002:

    GFC Now Generating 36-hr. Text Forecasts

    Early last week, we successfully executed a switch from a National Weather Service (NWS) generated 36-Hour Forecast to one prepared by the Global Forecast Center (GFC) on all legacy Star platforms of the core network. With the replacement of the NWS text forecast on the WEATHER STAR® III, 4000, and Jr., the entire suite of local weather forecast products is now prepared by the meteorological staff here at The Weather Channel. The official NWS watches, warnings, and advisories of all types will continue to display on all WEATHER STAR® units.

    One additional change that has been implemented since that announcement is the deployment of the new IntelliStar® real-time television rendering systems in more than 1,000 locations around the USA. The IntelliStar uses heuristics to adapt the Local Forecast at each individual location to the actual weather situation. For example, the Radar loop is abbreviated if there is no rain to show. (TWC uses a variety of WeatherStar devices at almost 10,000 locations to produce the Local. No other television network does anything even remotely comparable. Developing, deploying, and maintaining 10,000 TV rendering systems scattered around the US ain't cheap!!)

    TWC has roughly one hundred staff meteorologists that manually review and adjust the Dicast output, particularly when the 'first principal' models are prone to miss some physical discontinuity. (for example, most models can't simulate hurricanes at all)

    The NWS has far more meteorogical staff in its field offices, and they continue to provide an invaluable service for the nation. Computers and private companies can't replace the expertise of the NWS Field Office meteorologists and their $820M budget(FY2004).

    My point is that it is unfair and inaccurate to lump TWC in with 'the weather stenographers'. TWC really does spend a lot of effort and money to produce a value-added weather product. The folks here are more serious about accurate weather prediction than most outsiders would believe.

    (This post is my personal understanding and view, not an official TWC release.)