On Thu, Jun 12, 2008 at 1:38 AM, Kevin M Levey &lt;<a href="mailto:klevey@customweather.com">klevey@customweather.com</a>&gt; 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&nbsp;necessary items that you list on&nbsp;<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&nbsp;successfully&nbsp;installed. The reason for wanting to work with pygrads is to be able to use the superior graphics&nbsp;visualization&nbsp;and&nbsp;blue-marble&nbsp;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 &gt; ./pygrads&nbsp;</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;">&nbsp;&nbsp;Welcome to PyGrADS, a GrADS-based iPython environment.&nbsp;</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 &lt;/home/weather/.pygrads/pygradsrc&gt;</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&nbsp;appears&nbsp;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&nbsp; necessary for cleaning up some of the internals of the package. You can read more about it here:<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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&#39;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&nbsp; start &quot;ipython&quot; and then type:<br><br>In [3]: import numpy<br>In [4]: p numpy.__version__<br><br>
and so on.&nbsp; 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>&nbsp; Let&#39;s see what we can do.<br>&nbsp; <br>&nbsp; &nbsp; &nbsp;&nbsp; Arlindo<br><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>