On Thu, Jun 12, 2008 at 1:38 AM, Kevin M Levey <<a href="mailto:klevey@customweather.com">klevey@customweather.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">WED 11JUN08: 2230PDT<div><br></div><div>Hi Arlindo</div><div><br></div><div>I have been wanting to experiment with pygrads, and recently installed GRADS 1.9.0 rc1 and then went through the procedure of installing from source all the necessary items that you list on <span style="font-family: Helvetica; font-size: 12px;"><a href="http://sourceforge.net/project/shownotes.php?release_id=579867" target="_blank">http://sourceforge.net/project/shownotes.php?release_id=579867</a><span style="font-family: Calibri; font-size: 17px;">. The opengrads extensions were also successfully installed. The reason for wanting to work with pygrads is to be able to use the superior graphics visualization and blue-marble base-maps.</span></span></div>
<div><br></div><div>Everything seemed to compile OK on my 64-bit CENTOS LINUX server. grads 1.90rc1 works just.</div><div><br></div><div>However, when I try and run pygrads I get the following error:</div><div><br></div><div>
<div><font size="3"><span style="font-size: 13px;">weather:typhoon /usr/local/bin/pygrads-1.0.8 > ./pygrads </span></font></div><div><font size="3"><span style="font-size: 13px;"><br></span></font></div><div><font size="3"><span style="font-size: 13px;"> Welcome to PyGrADS, a GrADS-based iPython environment. </span></font></div>
<div><font size="3"><span style="font-size: 13px;"><br></span></font></div><div><font size="3"><span style="font-size: 13px;">Using existing pygrads rc file </home/weather/.pygrads/pygradsrc></span></font></div><div>
<font size="3"><span style="font-size: 13px;">------------------------------------------------------------</span></font></div><div><font size="3"><span style="font-size: 13px;">...<br></span></font></div><div><font size="3"><span style="font-size: 13px;">WARNING: Loading of ipygrads failed.</span></font></div>
<div><font size="3"><span style="font-size: 13px;"><br></span></font></div><div><font size="3"><span style="font-size: 13px;"><br></span></font></div><div><font size="3"><span style="font-size: 13px;">In [1]:</span></font></div>
</div><div><br></div><div><br></div><div>It appears it is not able to load the grads and ipygrads modules. Any help would be greatly apreciated as I really want to be able to use the great functionality you have built into GRADS!</div>
<div><br></div><div>I have three versions of grads installed - the primary grads is 1.9b4 with the binaries in the /usr/bin folders. Version 2.0a2 and 1.90rc1 are in separate development folders and was wondering if this is potentially the problem here.</div>
<div><br></div></div></blockquote></div><br><br clear="all">There have been recent changes in numpy and in the Matplotlib API that are not backward compatible and ended up breaking PyGrADS (and I suspect a bunch of other similar packages as well). However, this refactoring was necessary for cleaning up some of the internals of the package. You can read more about it here:<br>
<br> <a href="http://matplotlib.sourceforge.net/">http://matplotlib.sourceforge.net/</a><br><br>I am pretty much done updating PyGrADS to cope with these changes but I still have a couple more issues to deal with. The challenge is to have a version of PyGrADS that works with the new and old Matplotlib, but I think it can be done. <br>
<br>My suggestion for you would be to stay with the current version of PyGrADS until I'm done with all the testing. However, we will need to patch it just enough so that it runs. For starters, can you send me the version of<br>
the following packages you are running:<br><br>numpy<br>matplotlib<br>basemap<br><br>To get the version number you start "ipython" and then type:<br><br>In [3]: import numpy<br>In [4]: p numpy.__version__<br><br>
and so on. For basemap<br><br>import matplotlib.toolkits.basemap as bmap<br>p bmap.__version__<br><br>or in case you have the newer version:<br><br>import mpl_toolkits.basemap as bmap<br>p bmap.__version__<br><br>Here are the versions of these packages that I am using with PyGrADS 1.0.8 on my Ubuntu 8.04 box:<br>
<br>numpy: 1.0.4<br>matplotlib: 0.91.2<br>basemap: 0.9.8<br><br> Let's see what we can do.<br> <br> Arlindo<br><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>