开发者

Enumerating NOAA weather conditions?

I am trying to use the NOAA API for current weather conditions observations and don't know if there is an enumerated list of all the possible weather conditions that they can generate.

As an examp开发者_如何学运维le if I use Yahoo's API (using a woeid near Apples Headquarters as an example) with the URl:

http://weather.yahooapis.com/forecastrss?w=12797509

It returns data with a condition tag containing:

<yweather:condition  text="Fair"  code="34"  temp="87"  date="Wed, 13 Oct 2010 1:56 pm PDT" />

From this I can also programmatically map the code of 34 to "Fair" using the API documentation at Yahoo! Weather RSS Feed#codes

But in comparison if I use the NOAA feed and apply the closest weather station of KNUQ (as a guess) using:

http://www.weather.gov/xml/current_obs/KNUQ.xml

I get back data with a tag that simply contains

<weather>Fair</weather>

So what I am looking for is to see if there is an enumeration of the contents of the <weather> tag. I haven't been able to find it on the NOAA site, but I wouldn't be surprised if I am looking in the wrong location.


The list of possible weather "phrases" and their associated icons is located here.

Weather Conditions

Possible weather conditions listed in the "weather" section of the NWS XML Feeds of Current Weather Conditions. Conditions are listed with suggested icons.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜