sharppy / SHARPpy

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

Error when trying to load in .buf files in v1.3.0 Xenia #98

Closed ghost closed 8 years ago

ghost commented 8 years ago

I am attempting to load in a .buf file for analysis and get the following error:

Traceback (most recent call last): File "full_gui.py", line 54. in doCrasher ret = func(_args, *_kwargs) File "full_gui.py", line 612, in openFile self.picker.skewApp(filename = l) File "full_gui.py", line 423, in skewApp prof_collection, stn_id = self.loadArchive(filename) File "full_gui.py", line 504, in loadArchive stn_id = dec.getStnId() File "/Users/BGoudeau/anaconda/envs/python2/lib/python2.7/site-packages/SHARPpy-1.3.0- py2.7.egg/sharppy/io/decoder.py", line 101 in getStnId return self._prof_collection.getMeta('loc') File "/Users/BGoudeau/anaconda/envs/python2/lib/python2.7/site-packages/SHARPpy-1.3.0- py2.7.egg/sharppy/sharptab/prof_collection.py", line 100 in getMeta meta = self.meta[key] KeyError:'loc'

I am not too sure whether the error is a decoder issue or an issue with the file, but I'll go ahead and attach the file if that helps, just change the .txt to .buf. 20110228_12z_KJKL.txt

Thanks for the help!

tsupinie commented 8 years ago

Hi, @barrettg19! I just pushed a fix to the master branch to address this issue. Could you test it?

(And yes, attaching the file was a big help!)

ghost commented 8 years ago

That did the trick, thanks for the fast response Tim!

tsupinie commented 8 years ago

Excellent!