PyGrADS on Fedora

Arlindo da Silva dasilva at ALUM.MIT.EDU
Tue Oct 13 11:37:50 EDT 2009


Fabio,
  It is better to conduct such exchanges on gradsusr so that we have a
record of it for future reference.

     Arlindo

---------- Forwarded message ----------
From: Fabio F.Gervasi <fabio.gervasi at email.it>
Date: Tue, Oct 13, 2009 at 9:40 AM
Subject: Re: Pylab/Galab: maybe 64bit Linux machine problems?
To: Arlindo da Silva <dasilva at alum.mit.edu>, Arlindo da Silva <
arlindo.dasilva at gmail.com>, Arlindo da Silva <dasilva at opengrads.org>


Hi Arlindo,
finally also galab works fine!

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_
64-unknown-linux-gnu.tar.gz...

Anyway, thank you for your support, unfortunately there is not much
information (about problems) online...

Fabio.



2009/10/8 Arlindo da Silva <dasilva at alum.mit.edu>


>
> On Thu, Oct 8, 2009 at 1:49 PM, Fabio F.Gervasi <fabio.gervasi at email.it>wrote:
>
>> Hi Arlindo,
>>
>> I see this on OpenGrads website: galab
>>   If PyLab/Matplotlib/Basemap is available, the module *galab* is
>>   loaded.  This module defines class *GaLab* which etends class
>>   *GaNum* with Matplotlib/Basemap specific methods for contours,
>>   images and other graphical functionality. This class provides high
>>   level methods operating directly on GrADS expressions (or *fields*)
>>   while retaining all the configurability that Matplotlib has to
>>   offer.
>> but when I try ./galab_examples.py i see only the error: *GaLab name not
>> defined*
>> *./gacore_examples.py | grep OK and ./ganum_examples.py work very well,
>> with out any problems!*
>> *All env and path are setup correctly;* *python-matplotlib,
>> python-matplotlib-tk, python-basemap, python-basemap-data, PIL and ipython
>> are installed*
>>
>> *WHY not work the galab?
>> *
>
>
>
> As I said, because you do not have all the dependencies, e.g., the basemap
> toolkit.
>
>
>> *Where is the problem? I have a 64bit Linux Fedora10 Machine. Maybe
>> x86_64 compatibility problems?
>> *
>> I done also:
>> *>>> import grads.galab*
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File "/usr/lib/python2.5/site-packages/grads/galab.py", line 52, in
>> <module>
>>     from matplotlib.toolkits.basemap import Basemap, interp
>> *ImportError: No module named toolkits.basemap*
>
>
> Your are missing this.
>
>
>>
>> *but python-basemap, python-basemap-data, python-basemap-data.noarch,
>> python-basemap-data-hires.noarch and python-basemap-examples.noarch are
>> installed!*
>>
>> I tried the same (from your Recipe-008):
>> [root at localhost data]# python ./test.py
>> Traceback (most recent call last):
>>   File "./test.py", line 3, in <module>
>>     ga = GrADS()
>> NameError: name 'GrADS' is not defined
>>
>> and also step by step, but:
>>  [2] ga-> ga.blue_marble('on')
>> ------------------------------------------------------------
>> Traceback (most recent call last):
>>   File "<ipython console>", line 1, in <module>
>> AttributeError: 'GaNum' object has no attribute 'blue_marble'
>>
>> *What else did it need? Literally... I can not get out alive! :-(*
>
>
> In the wiki it lists all the requirements, make sure you have it one. I
> repeat them here:
>
> Requirements
>
> For the basic functionality provided by module gacore you need the
> following
>
>    - Python <http://python.org/> Version 2.3 or later, or Jython<http://www.jython.org/>
>    - GrADS <http://grads.iges.org/grads>. Either
>       - Version 1.9.0-rc1 or later, or any OpenGrADS release<http://sourceforge.net/project/showfiles.php?group_id=161773>.
>       It *does not* work with v1.9b4
>       - Version 2.0.a3 or later. For previous versions of GrADS 2.0 only
>       the basic class *GaCore* works.
>
> If you would like GrADS to exchange array data with Python, module ganum
>  requires
>
>    - For exporting n-dimensional arrays from GrADS you will need:
>       - NumPy <http://numpy.scipy.org/>
>    - For importing/exporting data from GrADS you will need in addition:
>       - GrADS extension libipc <http://opengrads.org/doc/udxt/libipc/>.
>       See the User Defined Extensions<http://opengrads.org/wiki/index.php?title=User_Defined_Extensions> documentation
>       for information.
>
> For high quality graphics in Python, including map backgrounds and
> transformations,
>
>    - Matplotlib <http://matplotlib.sourceforge.net/>
>    - Basemap Tookit <http://www.scipy.org/Cookbook/Matplotlib/Maps> for
>    Matplotlib
>
> If you will be working with satellite images it is recommended that you
> install
>
>    - PIL <http://www.pythonware.com/products/pil/>, the Python Imaging
>    Library
>
> The additional color tables provided by module gacm require both
> Matplotlib and PIL. And finally, it is *highly recommended* that you also
> install
>
>    - IPython <http://ipython.scipy.org/moin/>
>
> for a more enjoyable interactive experience. Although not a requirement,
> the following package is highly recommended:
>
>    - SciPy - Scientific Tools or Python <http://www.scipy.org/>
>
> These packages are available for most Linux distributions, MacOS X and
> Microsoft Windows, as well as in many flavors of Unix. Consult the Platform
> Specific Notes<http://opengrads.org/wiki/index.php?title=Python_Interface_to_GrADS#Platform_Specific_Notes> for
> additional information.
>
>
> --
> Arlindo da Silva
> dasilva at alum.mit.edu
>




--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091013/9492a675/attachment.html 


More information about the gradsusr mailing list