Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing Wyoming Soundings no ICAO Station ID #238

Closed
kgoebber opened this issue Jul 13, 2018 · 1 comment
Closed

Accessing Wyoming Soundings no ICAO Station ID #238

kgoebber opened this issue Jul 13, 2018 · 1 comment

Comments

@kgoebber
Copy link

So I was attempting to access data from March of 1976 from the University of Wyoming Sounding archive and when going back that far, not every station is associated with a three-letter ICAO ID on the site. A number of the stations are listed by number. Okay not terrible, but not great. I put the number in instead of the station ID and it finds the right data file, but due to the lack of a Station ID, the parsing info from below "Station information and sounding indices" it doesn't work correctly (http://weather.uwyo.edu/cgi-bin/sounding?region=naconf&TYPE=TEXT%3ALIST&YEAR=1976&MONTH=03&FROM=0400&TO=0400&STNM=72349) compared to (http://weather.uwyo.edu/cgi-bin/sounding?region=naconf&TYPE=TEXT%3ALIST&YEAR=1976&MONTH=03&FROM=0400&TO=0400&STNM=72456) the different is in the lack of the "Station Identifier:" line in the 72349 station file.

There might be a relatively easy way to make the parsing of that first line more amenable to working with a set of data that doesn't contain a Station Identifier line. The following code will give the error that results from the previous description.

from datetime import datetime

from siphon.simplewebservice.wyoming import WyomingUpperAir

date = datetime(1976, 3, 4, 0)

data = WyomingUpperAir.request_data(date, '72349')
@jrleeman
Copy link
Contributor

PR on the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants