Dear gradsusr,<br><br>Just before mentioning the error, I like to emphasize that the
environment variables GAUDXT and LD_LIBRARY_ PATH are (apparently)
properly set in my .bashrc. <br><br>I've been struggling a bit just to follow a pygrads example available in <a href="http://opengrads.org/wiki/index.php?title=PyGrADS_Interactive_Shell">http://opengrads.org/wiki/index.php?title=PyGrADS_Interactive_Shell</a> . Everytime I want to export and expression, change it in Python and import back I get the following message:<br>
<br><br>***********<br>iuser@iuser-Dell-System-Vostro-3450:~$ pygrads<br><br> Welcome to PyGrADS, a GrADS-based iPython environment. <br><br>Grid Analysis and Display System (GrADS) Version 2.0.a9.oga.1<br>Copyright (c) 1988-2010 by Brian Doty and the<br>
Institute for Global Environment and Society (IGES)<br>GrADS comes with ABSOLUTELY NO WARRANTY<br>See file COPYRIGHT for more information<br><br>Config: v2.0.a9.oga.1 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff shapefile<br>
Issue 'q config' command for more detailed configuration information<br>Loading User Defined Extensions table </opt/opengrads/Linux/Versions/2.0.a9.oga.1/i686/gex/udxt> ... ok.<br>GX Package Initialization: Size = 11 8.5 <br>
<br><br> Welcome to PyGrADS, a GrADS-based iPython environment. <br> For more information, type 'help(ipygrads)'<br><br>? -> Introduction and overview of IPython's features.<br>help -> Python's own help system.<br>
qref -> PyGrADS quick reference<br>examples -> Some PyGrADS examples<br>object? -> Details about 'object'. ?object also works, ?? prints more.<br><br><br><br> [2] ga-> o model<br>Scanning description file: model<br>
Data file model.grb is open as file 1<br>LON set to 0 360 <br>LAT set to -90 90 <br>LEV set to 1000 1000 <br>Time values set: 1987:1:1:0 1987:1:1:0 <br>E set to 1 1 <br><br><br> [3] ga-> . q dims<br>Default file number is: 1 <br>
X is varying Lon = 0 to 360 X = 1 to 73<br>Y is varying Lat = -90 to 90 Y = 1 to 46<br>Z is fixed Lev = 1000 Z = 1<br>T is fixed Time = 00Z01JAN1987 T = 1<br>E is fixed Ens = 1 E = 1<br><br><br> [4] ga-> . set lev 300<br>
LEV set to 300 300 <br><br><br> [5] ga-> uv = ga.exp('ua*ua+va*va')<br><br> [6] ga-> speed = sqrt(uv)<br><br> [7] ga-> ga.imp('speed', speed)<br><br>------------------------------------------------------------<br>
Traceback (most recent call last):<br> File "<ipython console>", line 1, in <module><br> File "/usr/local/lib/python2.7/dist-packages/grads/ganum.py", line 336, in imp<br> t1_, z1_ = (grid.denv.t[0], grid.denv.z[0])<br>
AttributeError: 'NoneType' object has no attribute 't'<br><br><br> [8] ga-> ga.imp('speed', speed)<br>^[[A<br>^C------------------------------------------------------------<br>Traceback (most recent call last):<br>
File "<ipython console>", line 1, in <module><br> File "/usr/local/lib/python2.7/dist-packages/grads/ganum.py", line 298, in imp<br> dh = self.query("dims", Quiet=True)<br>
File "/usr/local/lib/python2.7/dist-packages/grads/gacore.py", line 494, in query<br>
self.cmd('query '+what,Quiet)<br> File "/usr/local/lib/python2.7/dist-packages/grads/gacore.py", line 241, in cmd<br> rc = self._parseReader(Quiet)<br> File "/usr/local/lib/python2.7/dist-packages/grads/gacore.py", line 1051, in _parseReader<br>
got = self.Reader.readline()<br>KeyboardInterrupt<br><br><br> [9] ga-> <br>^C<br>************<br><br>The funny thing is that after I try it once, the second try gets stuck and only CTRL+C returns the prompt back...<br>
<br>Any hint on what can be going on will be very welcome.<br><br>Thx in advance,<br><br clear="all">--<br>Helio<br>