On Tue, Oct 4, 2011 at 12:18 AM, Helio Camargo <span dir="ltr"><<a href="mailto:heliocamargo@gmail.com">heliocamargo@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br><br><div class="gmail_quote"><div class="im">On Mon, Oct 3, 2011 at 10:26 PM, Arlindo da Silva <span dir="ltr"><<a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div>On Mon, Oct 3, 2011 at 9:06 PM, Helio Camargo <span dir="ltr"><<a href="mailto:heliocamargo@gmail.com" target="_blank">heliocamargo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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></blockquote><div><br></div></div><div>If you are using the opengrads bundle, you should *not* set any of these; just put Contents/ in your path.</div></div></blockquote></div><div><br>
Hi Arlindo,<br>
<br>Thanks for the response. <br></div><div><br>Fixed it! Error persists though...<br><br> </div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div class="gmail_quote"><div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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" target="_blank">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></blockquote><div><br></div></div><div>Which version of pygrads are you using? Which platform? Are using EPD? If so, which version?</div></div></blockquote></div><div><br></div></div></blockquote><div><br></div><div>
EPD is not necessary.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div>I'm using pygrads-1.1.0. </div></div></blockquote>
<div><br></div><div><br></div><div>This is very old. The current version is 1.1.b5 which you get from here:</div><div><br></div><div> <a href="http://sourceforge.net/projects/opengrads/files/python-grads/1.1.b5/">http://sourceforge.net/projects/opengrads/files/python-grads/1.1.b5/</a></div>
<div><br></div><div>Give this a try and if the problem persists, get back to me.</div><div><br></div><div> Arlindo</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div>I'm trying the same thing on a Mac OS X 10.6.7 and on a Ubuntu...one thing is that I couldn't find the folder Contents in Ubuntu, but I pointed the path of the grads executable in the path...actually both of them return exactly the same error message I copied in my last e-mail...and no, I'm not using any EPD...<br>
<br>Thanks again!<br><br> </div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div class="gmail_quote"><div><br>
</div><div> Arlindo</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
<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><font color="#888888"><br clear="all">--<br>Helio<br>
</font><br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a><br>
</font><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div></div></div><br>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>