sharppy / SHARPpy

Sounding/Hodograph Analysis and Research Program in Python
https://sharppy.github.io/SHARPpy/index.html
Other
216 stars 112 forks source link

Question: How To Open Archived Sounding Data #185

Open cjn1979 opened 4 years ago

cjn1979 commented 4 years ago

I couldn't find bufkit data going back to 2004 so I'm trying to open an archived sounding file from UW. I'm not sure how to do it. I select the date, selected Text:List from the type of plot menu, and clicked the station I want the data from. The site opens another window with text. I copied the text into a text file and tried to open it but I get a "SHARPpy is broke message."

The data in file looks like what I pasted below, except it's lined up correctly.

Am I doing this right?

Regards, Chris


PRES HGHT TEMP DWPT RELH MIXR DRCT SKNT THTA THTE THTV hPa m C C % g/kg deg knot K K K

1007.0 53 27.4 23.3 78 18.26 60 5 299.9 353.7 303.2 1000.0 118 26.8 22.9 79 17.94 61 6 299.9 352.7 303.2 952.0 551 22.6 20.3 87 16.02 72 12 299.9 347.0 302.8 925.0 802 21.4 18.8 85 15.00 78 15 301.2 345.5 303.9 902.0 1021 20.0 17.9 88 14.52 83 18 301.9 345.0 304.5

georgephillips1 commented 4 years ago

The format that the archived sounding file needs to be in is specified here

https://github.com/sharppy/SHARPpy#using-the-sharppy-sounding-picker

under "Loading in Sounding Data Files". At least that's the way it used to be. I haven't seen any changes announced.

georgephillips1 commented 4 years ago

Hmm. Never mind, I guess it will load bufkit type archive files. I guess you'll need to create the file, and format it as closely as you can, to regular bufkit files with all the date, time, ID, elevation, etc information at the top of the file, but obviously I'm no expert. But wouldn't you need something like this at the top?

SNPARM = PRES;TMPC;TMWC;DWPC;THTE;DRCT;SKNT;OMEG;CFRL;HGHT STNPRM = SHOW;LIFT;SWET;KINX;LCLP;PWAT;TOTL;CAPE;LCLT;CINS;EQLV;LFCT;BRCH

STID = KK68 STNM = 374 TIME = 191125/0000 SLAT = 38.28 SLON = -95.22 SELV = 313 STIM = 0

SHOW = 8.34 LIFT = 9.25 SWET = 78.33 KINX = 7.79 LCLP = 816.57 PWAT = 10.36 TOTL = 37.31 CAPE = 0.00 LCLT = 272.12 CINS = 0.00 EQLV = -9999.00 LFCT = -9999.00 BRCH = 0.00

PRES TMPC TMWC DWPC THTE DRCT SKNT OMEG CFRL HGHT 968.30 12.54 7.15 1.32 301.08 202.17 5.67 0.10 0.00 323.35 965.40 15.74 8.20 0.05 303.71 218.99 10.50 0.10 0.00 348.64 960.10 16.54 8.17 -1.13 304.16 224.43 13.88 0.10 0.00 395.37 951.00 16.04 7.78 -1.56 304.23 225.97 16.22 0.20 0.00 476.23 ETC.

cjn1979 commented 4 years ago

Thanks for the reply. The help site (https://sharppy.github.io/SHARPpy/datasource_guide.html) states that it will load UW data, but I'm not sure what that means. The data is available for UW in the three formats, links below. The last one looks similar to what you posted but not quite the same. I'm not sure if I can save this to a text file and load it (doesn't work) or if I need to add some of the tags (%TITLE%, %RAW%, and %END%). If the tags are needed I'm not sure where they should go.

Chris

http://weather.uwyo.edu/cgi-bin/sounding?region=naconf&TYPE=TEXT%3ALIST&YEAR=2004&MONTH=09&FROM=1412&TO=1412&STNM=72214

http://weather.uwyo.edu/cgi-bin/sounding?region=naconf&TYPE=TEXT%3ARAW&YEAR=2004&MONTH=09&FROM=1412&TO=1412&STNM=72214

http://weather.uwyo.edu/cgi-bin/sounding?region=naconf&TYPE=TEXT%3AUNMERGED&YEAR=2004&MONTH=09&FROM=1412&TO=1412&STNM=72214