Fabio,<div><br></div><div> It is better to conduct such exchanges on gradsusr so that we have a record of it for future reference.</div><div><br></div><div> Arlindo<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Fabio F.Gervasi</b> <span dir="ltr"><<a href="mailto:fabio.gervasi@email.it">fabio.gervasi@email.it</a>></span><br>Date: Tue, Oct 13, 2009 at 9:40 AM<br>Subject: Re: Pylab/Galab: maybe 64bit Linux machine problems?<br>
To: Arlindo da Silva <<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>>, Arlindo da Silva <<a href="mailto:arlindo.dasilva@gmail.com">arlindo.dasilva@gmail.com</a>>, Arlindo da Silva <<a href="mailto:dasilva@opengrads.org">dasilva@opengrads.org</a>><br>
<br><br>Hi Arlindo,<br>finally also galab works fine!<br><br>But only using Fedora11 Linux distro (not FC10), python 2.6 (not 2.5), pygrads-1.1.3 and grads-2.0.a7.oga.2-bundle-x86_<div>64-unknown-linux-gnu.tar.gz...<br>
<br>Anyway, thank you for your support, unfortunately there is not much information (about problems) online...<br><br>Fabio.<br><br></div><br><br><div class="gmail_quote">2009/10/8 Arlindo da Silva <span dir="ltr"><<a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><br><br><div class="gmail_quote"><div>On Thu, Oct 8, 2009 at 1:49 PM, Fabio F.Gervasi <span dir="ltr"><<a href="mailto:fabio.gervasi@email.it" target="_blank">fabio.gervasi@email.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Hi Arlindo,<br><br>I see this on OpenGrads website: galab <br> If PyLab/Matplotlib/Basemap is available, the module *galab* is<br> loaded. This module defines class *GaLab* which etends class<br> *GaNum* with Matplotlib/Basemap specific methods for contours,<br>
images and other graphical functionality. This class provides high<br> level methods operating directly on GrADS expressions (or *fields*)<br> while retaining all the configurability that Matplotlib has to<br> offer.<br>
but when I try ./galab_examples.py i see only the error: <b>GaLab name not defined</b><br><b>./gacore_examples.py | grep OK and ./ganum_examples.py work very well, with out any problems!</b><br><b>All env and path are setup correctly;</b> <b>python-matplotlib, python-matplotlib-tk, python-basemap, python-basemap-data, PIL and ipython are installed</b><br>
<br><i><u><b>WHY not work the galab?<br></b></u></i></blockquote><div><br></div><div><br></div></div><div>As I said, because you do not have all the dependencies, e.g., the basemap toolkit.</div><div><div> </div>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<i><u><b>Where is the problem? I have a 64bit Linux Fedora10 Machine. Maybe x86_64 compatibility problems?</b></u><br></i> <br>I done also:<br><b>>>> import grads.galab</b><br>Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br> File "/usr/lib/python2.5/site-packages/grads/galab.py", line 52, in <module><br> from matplotlib.toolkits.basemap import Basemap, interp<br>
<b>ImportError: No module named <font color="#cc0000"><span style="text-decoration:underline">toolkits.basemap</span></font></b></blockquote><div><br></div></div><div>Your are missing this. </div><div>
<div> </div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><br><b>but python-basemap, python-basemap-data, python-basemap-data.noarch, python-basemap-data-hires.noarch and python-basemap-examples.noarch are installed!</b><br>
<br>
I tried the same (from your Recipe-008):<br>[root@localhos<span></span>t data]# python ./test.py<br>Traceback (most recent call last):<br> File "./test.py", line 3, in <module><br> ga = GrADS()<br>
NameError: name 'GrADS' is not defined<br>
<br>and also step by step, but:<br> [2] ga-> ga.blue_marble('on')<br>------------------------------------------------------------<br>Traceback (most recent call last):<br> File "<ipython console>", line 1, in <module><br>
AttributeError: 'GaNum' object has no attribute 'blue_marble'<br><br><b>What else did it need? Literally... I can not get out alive! :-(</b>
</blockquote></div></div><div><br></div>In the wiki it lists all the requirements, make sure you have it one. I repeat them here:<br><div><br></div><div><span style="font-family:sans-serif;font-size:14px;line-height:21px"><h3 style="margin:0px 0px 0.3em;color:black;font-weight:bold;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none;font-size:17px">
<span>Requirements</span></h3><p style="margin:0.4em 0px 0.5em;line-height:1.5em">For the basic functionality provided by module <tt>gacore</tt> you need the following</p>
<ul style="margin:0.3em 0px 0px 1.5em;padding:0px;line-height:1.5em;list-style-type:square">
<li style="margin-bottom:0.1em"><a href="http://python.org/" title="http://python.org" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank">Python</a> Version 2.3 or later, or <a href="http://www.jython.org/" title="http://www.jython.org/" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank">Jython<span></span></a></li>
<li style="margin-bottom:0.1em"><a href="http://grads.iges.org/grads" title="http://grads.iges.org/grads" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank">GrADS</a>. Either<ul style="margin:0.3em 0px 0px 1.5em;padding:0px;line-height:1.5em;list-style-type:square">
<li style="margin-bottom:0.1em">Version 1.9.0-rc1 or later, or any <a href="http://sourceforge.net/project/showfiles.php?group_id=161773" title="http://sourceforge.net/project/showfiles.php?group_id=161773" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank">OpenGrADS release</a>. It <b>does not</b> work with v1.9b4</li>
<li style="margin-bottom:0.1em">Version 2.0.a3 or later. For previous versions of GrADS 2.0 only the basic class <b>GaCore</b> works.</li></ul></li></ul><p style="margin:0.4em 0px 0.5em;line-height:1.5em">
If you would like GrADS to exchange array data with Python, module <tt>ganum</tt> requires</p><ul style="margin:0.3em 0px 0px 1.5em;padding:0px;line-height:1.5em;list-style-type:square">
<li style="margin-bottom:0.1em">For exporting n-dimensional arrays from GrADS you will need:<ul style="margin:0.3em 0px 0px 1.5em;padding:0px;line-height:1.5em;list-style-type:square">
<li style="margin-bottom:0.1em"><a href="http://numpy.scipy.org/" title="http://numpy.scipy.org" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank">NumPy</a></li>
</ul></li><li style="margin-bottom:0.1em">For importing/exporting data from GrADS you will need in addition:<ul style="margin:0.3em 0px 0px 1.5em;padding:0px;line-height:1.5em;list-style-type:square">
<li style="margin-bottom:0.1em">GrADS extension <a href="http://opengrads.org/doc/udxt/libipc/" title="http://opengrads.org/doc/udxt/libipc/" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank">libipc</a>. See the <a href="http://opengrads.org/wiki/index.php?title=User_Defined_Extensions" title="User Defined Extensions" style="text-decoration:none;color:rgb(0, 43, 184)" target="_blank">User Defined Extensions</a> documentation for information.</li>
</ul></li></ul><p style="margin:0.4em 0px 0.5em;line-height:1.5em">For high quality graphics in Python, including map backgrounds and transformations,</p><ul style="margin:0.3em 0px 0px 1.5em;padding:0px;line-height:1.5em;list-style-type:square">
<li style="margin-bottom:0.1em"><a href="http://matplotlib.sourceforge.net/" title="http://matplotlib.sourceforge.net/" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank">Matplotlib</a></li>
<li style="margin-bottom:0.1em"><a href="http://www.scipy.org/Cookbook/Matplotlib/Maps" title="http://www.scipy.org/Cookbook/Matplotlib/Maps" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank"><span style="background-color:rgb(255, 255, 51)">Basemap Tookit</span></a><span style="background-color:rgb(255, 255, 51)"> for Matplotlib</span></li>
</ul><p style="margin:0.4em 0px 0.5em;line-height:1.5em">If you will be working with satellite images it is recommended that you install</p><ul style="margin:0.3em 0px 0px 1.5em;padding:0px;line-height:1.5em;list-style-type:square">
<li style="margin-bottom:0.1em"><a href="http://www.pythonware.com/products/pil/" title="http://www.pythonware.com/products/pil/" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank"><span style="background-color:rgb(255, 255, 51)">PIL</span></a><span style="background-color:rgb(255, 255, 51)">, the Python Imaging Library</span></li>
</ul><p style="margin:0.4em 0px 0.5em;line-height:1.5em">The additional color tables provided by module <tt>gacm</tt> require both Matplotlib and PIL. And finally, it is <i>highly recommended</i> that you also install</p>
<ul style="margin:0.3em 0px 0px 1.5em;padding:0px;line-height:1.5em;list-style-type:square">
<li style="margin-bottom:0.1em"><a href="http://ipython.scipy.org/moin/" title="http://ipython.scipy.org/moin/" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank">IPython</a></li>
</ul><p style="margin:0.4em 0px 0.5em;line-height:1.5em">for a more enjoyable interactive experience. Although not a requirement, the following package is highly recommended:</p>
<ul style="margin:0.3em 0px 0px 1.5em;padding:0px;line-height:1.5em;list-style-type:square">
<li style="margin-bottom:0.1em"><a href="http://www.scipy.org/" title="http://www.scipy.org/" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank">SciPy - Scientific Tools or Python</a></li>
</ul><p style="margin:0.4em 0px 0.5em;line-height:1.5em">These packages are available for most Linux distributions, MacOS X and Microsoft Windows, as well as in many flavors of Unix. Consult the <a href="http://opengrads.org/wiki/index.php?title=Python_Interface_to_GrADS#Platform_Specific_Notes" title="http://opengrads.org/wiki/index.php?title=Python_Interface_to_GrADS#Platform_Specific_Notes" rel="nofollow" style="text-decoration:none;color:rgb(51, 102, 187);background-repeat:no-repeat;padding-right:13px" target="_blank">Platform Specific Notes</a> for additional information.</p>
<p style="margin:0.4em 0px 0.5em;line-height:1.5em"><font face="arial"><span style="font-size:small;line-height:normal"><font face="sans-serif"><span style="line-height:21px"><br>
</span></font></span></font></p></span></div><div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a><br>
</div>
</blockquote></div></div></div><br>
</div><br><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>
</div>