On Tue, 1 Jul 2003 kellan@protest.net wrote:
> But I was wondering if anyone is interesting collaborating on a RSS
> namespace for weather? Wouldn't be very useful for now, but a new
> generation of aggregators is starting to arrive who are able to leverage
> more then just the core TLD.
Hmm.,.. Have you seen this:
http://zowie.metnet.navy.mil/~spawar/JMV-TNG/XML/OMF.html ?
There's a service which lets you query for METAR reports, and it spits stuff back in XML. The only problem is that the XML isn't technically XML since it's got everything except the <?xml version="1.0"?> at the top, which makes it hard to play with things like Cocoon.
> As I started to jot down what might go in a weather namespace, I decided
> that weather reports really come in 3 separate types, and perhaps they
> need 3 namespaces? Simplicity cries out for just one, but I thought a
> hybrid spec that defines some common units and talks about the
> relationship between the different namespaces might make it all work.
>
> The 3 separate types are: current conditions, forecasts, and hazardous
> weather/storm warnings. (Tentatively thinking of recomending the
> prefixes: weather, forecast, and storm)
>
> Current might include:
> * sky - a prose description of current conditions
> * temp - the current temperature
> * humidity - the percent humidity
> * windspeed - wind speed
> * dewpoint - another temperature
> * heatindex - relative heat, another temp
> * windchill - relative cold, another temp.
> * visibility
The weather XML format from the "zowie" host is an ok format, but I think the simpler the better. I've noticed that some of the OMF XML could use a little reworking, there are some elements where they just slapp all the data into a tag and separate things by spaces, which IMO is a no-no, and degrades the information contained inside.
> Did I forget any?
>
> One of the first things you notice with weather is people like to use
> their annoying, region specific measurements. Are temperatures in
> Fahrenheit or Celsius? Is windspeed miles per hour? kilometers per hour?
> knots?
Temperature and unit conversion IMO is a localization issue. We can build the unit reporting into the element, such as <temp units="c">24</temp>, etc.
> Sometimes visibility is noted as "10 miles", other times as "very good".
Yes, this does create issues. We'd almost need to decide whether to report a value and units, or just a generic "description" of the
conditions.
> There are a number of potentially complex solutions we could come up with,
> involving sub-elements, or attributes, or what not, but I thought the
> easiest would be to require measurements of temperature and distance to be
> marked unambigously. So valid temps are 32F or 5C, and a valid windspeed
> is 13MPH.
> The nice thing being none of these scales are all that hard to convert
> between, but if for example you're going to calculate windchill, you'll
> need to make sure you know if you're working in Farenheit & miles, or
> celcius and kilometers.
>
> Forecast will generally be simpler as there is rarely much info available,
> still any element from current should be valid in forecast.
Some forecasts are like that. I've noticed the NWS forecasts for an area can be one of two formats: Tabular, and Discussion.
Compare
http://weather.noaa.gov/pub/data/forecasts/state/mn/mnz001.txt to
http://weather.noaa.gov/pub/data/forecasts/state/il/ilz001.txt, and you'll see the problem.
> Forecast adds
> * period - prose description, "Today", "Thursday", "Tuesday Night"
> * date - the day the forecast is for
> should one be able to represent a range of dates here?
> often you'll see something like "Monday Night - Friday, Clear"
> * hi - forecasted high/max temperature for a period
> * lo - forecasted lo/min temp for a period
>
> I haven't really thought about the Storm namespace yet.
>
> What do you think, seem like a good idea? Sound interesting? Did I miss
> something obvious?
I think the OMF format is good because it's already well-defined. However, it's run by someone in .mil, so I'm not sure what would happen if we want to make additions to the DTD, etc. mostly because we have no clout in the meteorological community =]
I like the idea of a forecast format, but there's lots of different ways to represent this. Naturally, I want a format that will work very well with the data coming directly off weather.noaa.gov/pub/* data.
Storm warning formats are good. There are things like geographic information (bounding boxes, or lists of counties?) which need to be taken into consideration.
I think it would be awesome to have a service eventually when the NWS requests the activation of skywarn (
http://www.skywarn.org/) of a certain area, again delivered over RSS.
Oh yeah, and now there's this whole "Echo" business
(
http://www.intertwingly.net/wiki/pie/), which seems to have tons of support from lots of people in the weblogging and software community, so we should be keeping an eye on this.
Tony
--
Tony Collen
ICQ: 12410567
--
Cocoon: Internet Glue (A weblog about Apache Cocoon)
http://manero.org/weblog/--