<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Dave,<div class=""><br class=""></div><div class="">Yes, I downloaded from the ncar channel (version 1.4.3).</div><div class=""><br class=""></div><div class="">The library is very good overall and works on most grib2 files. &nbsp;The only two model data files (that I’ve tried anyway) that do not play nicely are:</div><div class="">HREF (High Resolution Ensemble Forecast) -&nbsp;<a href="http://nomads.ncep.noaa.gov/pub/data/nccf/com/hiresw/prod/" class="">http://nomads.ncep.noaa.gov/pub/data/nccf/com/hiresw/prod/</a></div><div class="">Wavewatch -&nbsp;<a href="http://nomads.ncep.noaa.gov/pub/data/nccf/com/wave/prod/" class="">http://nomads.ncep.noaa.gov/pub/data/nccf/com/wave/prod/</a>&nbsp; (the multi_1 data, specifically)</div><div class=""><br class=""></div><div class="">Several others I’ve used (RAP, GFS, SREF) work great. &nbsp;The Wavewatch model data can pulled in as netcdf through the opendap server, and I’m able to plot that through the netcdf4 library. &nbsp;However, the HREF is only available via grib2, so I’m a little out of luck on that one.</div><div class=""><br class=""></div><div class="">Just thought I’d pass along.</div><div class=""><br class=""></div><div class="">Thanks again for the help and for this nice tool,</div><div class=""><br class=""></div><div class="">Ray</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 16, 2016, at 2:13 PM, David Brown &lt;<a href="mailto:dbrown@ucar.edu" class="">dbrown@ucar.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Ray,<br class="">We were aware of the krb5 problem, but so far we have only updated the<br class="">code to handle it for the beta version of PyNIO in the 'dbrown'<br class="">channel. We will update the 'ncar' channel with the 1.4.3 version of<br class="">PyNIO today. Is that the version that you installed?<br class="">As for the GRIB2 file, PyNIO does support GRIB2 probability data in<br class="">general, but apparently there is some feature of these particular<br class="">files that it does not yet handle. We will investigate. Thanks for the<br class="">report.<br class=""> -dave<br class=""><br class=""><br class=""><br class="">On Tue, Mar 15, 2016 at 8:33 AM, Ray Hawthorne &lt;<a href="mailto:frontogenesis@gmail.com" class="">frontogenesis@gmail.com</a>&gt; wrote:<br class=""><blockquote type="cite" class="">Natalie’s suggestion appears to be the smoking gun. &nbsp;I’m able to import Nio<br class="">now, and was able to open up a RAP GRIB2 file downloaded from NOMADS.<br class=""><br class="">The original file I was attempting to open is throwing me an error and<br class="">aborting. &nbsp;I’m not sure if pynio supports probability files, so I’ll take a<br class="">closer look at that portion of the pynio documentation later on.<br class=""><br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">import Nio<br class="">f = Nio.open_file("href.t06z.prob.f36.grib2")<br class=""></blockquote></blockquote></blockquote>Abort trap: 6<br class=""><br class="">Thank you for the help,<br class=""><br class="">Ray<br class=""><br class=""><br class=""><br class=""><br class="">On Mar 15, 2016, at 8:16 AM, Tourville,Natalie<br class="">&lt;<a href="mailto:Natalie.Tourville@colostate.edu" class="">Natalie.Tourville@colostate.edu</a>&gt; wrote:<br class=""><br class="">Hi Ray,<br class=""><br class="">We recently ran into this error and installing krb5 fixed the issue. &nbsp;It’s<br class="">looking for the libgssapi_krb5.2.2.dylib library (found in the krb5<br class="">package).<br class=""><br class="">conda install krb5<br class=""><br class="">And then reinstall PyNio.<br class=""><br class="">Regards,<br class="">-Natalie Tourville<br class=""><br class=""><br class="">On Mar 15, 2016, at 6:49 AM, Kyle Griffin &lt;<a href="mailto:ksgriffin2@wisc.edu" class="">ksgriffin2@wisc.edu</a>&gt; wrote:<br class=""><br class="">Ray,<br class=""><br class="">If you import a module with a certain name, you must reference its functions<br class="">with that name as well. Since 'import Nio' is how the module was intended to<br class="">be imported, the instructions are to use that. Since you've imported PyNIO,<br class="">you would have to use 'PyNIO.open_file(....)' to use things from the PyNIO<br class="">module. Alternatively, you can do 'import PyNIO as Nio' to create an alias<br class="">with which you can refer to the module - this would allow your<br class="">'Nio.open_file(...)' statements to work as you've written them.<br class=""><br class=""><br class="">Kyle<br class=""><br class="">On Tue, Mar 15, 2016 at 7:06 AM Ray Hawthorne &lt;<a href="mailto:frontogenesis@gmail.com" class="">frontogenesis@gmail.com</a>&gt;<br class="">wrote:<br class="">Good morning Dave,<br class=""><br class="">Unfortunately, that does not work.<br class=""><br class="">Here’s what I get back when importing Nio:<br class=""><br class="">import Nio<br class=""><br class="">Traceback (most recent call last):<br class=""> File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br class=""> File<br class="">"/Users/frontogenesis/anaconda2/lib/python2.7/site-packages/PyNIO/Nio.py",<br class="">line 63, in &lt;module&gt;<br class=""> &nbsp;&nbsp;from nio import *<br class="">ImportError:<br class="">dlopen(/Users/frontogenesis/anaconda2/lib/python2.7/site-packages/PyNIO/nio.so,<br class="">2): Library not loaded: @rpath/libgssapi_krb5.2.2.dylib<br class=""> Referenced from:<br class="">/Users/frontogenesis/anaconda2/lib/python2.7/site-packages/PyNIO/nio.so<br class=""> Reason: image not found<br class=""><br class=""><br class="">Here’s what I get when importing PyNIO (success), but try to open the file<br class="">(not successful):<br class=""><br class="">import PyNIO<br class="">f = Nio.open_file("href.t06z.prob.f36.grib2")<br class=""><br class="">Traceback (most recent call last):<br class=""> File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br class="">NameError: name 'Nio' is not defined<br class=""><br class="">-Ray<br class=""><br class="">On Mar 14, 2016, at 11:19 PM, David Brown &lt;<a href="mailto:dbrown@ucar.edu" class="">dbrown@ucar.edu</a>&gt; wrote:<br class=""><br class="">The standard way to import PyNIO is simply:<br class=""><br class="">import Nio<br class=""><br class="">f = Nio.open_file(&lt;filename&gt;)<br class=""><br class="">Let us know if that doesn't work.<br class="">-dave<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">On Mon, Mar 14, 2016 at 9:10 PM, Ray Hawthorne &lt;<a href="mailto:frontogenesis@gmail.com" class="">frontogenesis@gmail.com</a>&gt;<br class="">wrote:<br class=""><br class="">Greetings,<br class=""><br class="">I just installed PyNIO from anaconda and I’m having some trouble reading in<br class="">a grib2 file.<br class=""><br class="">Using the documentation, when I do an import into my Python script:<br class="">import Nio<br class=""><br class="">The import fails to occur.<br class=""><br class="">I dug around in the anaconda subdirectories and tried:<br class="">import PyNIO<br class="">And that import statement works just fine.<br class=""><br class="">However, when I go to open a grib file:<br class="">f = Nio.open_file("href.t06z.prob.f36.grib2”)<br class="">I end up getting a traceback.<br class=""><br class="">(Similar issue with importing PyNio.Nio as Nio)<br class=""><br class="">I suspect there’s a discrepancy between the documentation and the build of<br class="">PyNIO from anaconda — but I’m somewhere in the advanced beginner stage when<br class="">it comes to Python in general, so I’m not sure how I might be able to fix<br class="">this so that I can open the grib file with pynio. &nbsp;Would someone be able to<br class="">point me in the right direction?<br class=""><br class="">Thanks,<br class=""><br class="">Ray Hawthorne<br class="">_______________________________________________<br class="">pyngl-talk mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br class=""><br class=""><br class="">_______________________________________________<br class="">pyngl-talk mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk<br class="">_______________________________________________<br class="">pyngl-talk mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk<br class=""><br class=""><br class=""><br class=""></blockquote></div></div></blockquote></div><br class=""></div></body></html>