<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello, dear list,<br>
<br>
I have install pygrads successfully on my Ubuntu 11.04 with
opengrads 2.0.a8. <br>
<br>
When I test the pygrads as <br>
"<i>
<a class="moz-txt-link-freetext" href="http://cookbooks.opengrads.org/index.php?title=Recipe-008:_Using_PyGrADS_to_draw_contours_on_top_of_a_true-color_image_of_the_earth_%28Blue_Marble%29">http://cookbooks.opengrads.org/index.php?title=Recipe-008:_Using_PyGrADS_to_draw_contours_on_top_of_a_true-color_image_of_the_earth_%28Blue_Marble%29</a></i>
"<br>
<br>
It worked !<br>
<br>
While when I start to use python script as following : <b>(ts.py</b>)<br>
<i>import grads<br>
from pylab import title, savefig<br>
ga = GrADS()<br>
ga.open('model.ctl')<br>
ga.contour('ts')<br>
title('Surface Temperature')<br>
savefig('ts.png')</i><br>
<br>
<br>
and run it with: <u> python2.6 ts.py</u><br>
<br>
It said:<br>
<i><br>
/usr/local/lib/python2.6/dist-packages/grads/gacore.py:42:
DeprecationWarning: The popen2 module is deprecated. Use the
subprocess module.<br>
from popen2 import popen2<br>
Traceback (most recent call last):<br>
File "ts.py", line 3, in <module><br>
ga = GrADS()<br>
NameError: name 'GrADS' is not defined</i><br>
<br>
<br>
Can anybody tell me what's the problem here and how can I fix it?<br>
<br>
<br>
Thanks!<br>
Wang Jun<br>
</body>
</html>