<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=GB2312">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR><LINK
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"
rel=stylesheet></HEAD>
<BODY bgColor=#eaeaea><FONT size=2><FONT face=ËÎÌå>Hi,Arlindo</FONT></FONT>
<DIV> </DIV>
<DIV>I installed "pygrads-1.0.8.win32_superpack.exe"</DIV>
<DIV> </DIV>
<DIV>After one afternoon's fumble, I have some preliminary understanding about
PyGrads and achieve some simple task.</DIV>
<DIV> </DIV>
<DIV>There is a little question: how to send the Python variables to
GrADS when I want set the attributes.</DIV>
<DIV> </DIV>
<DIV>For example:</DIV>
<DIV>in GrADS Scripting Language</DIV>
<DIV>x1=1</DIV>
<DIV>x2=5</DIV>
<DIV>y1=1</DIV>
<DIV>y2=3</DIV>
<DIV>'set parea 'x1' 'x2' 'y1' 'y2</DIV>
<DIV> </DIV>
<DIV>How to achieve this function in PyGrads simply?</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV>Peter Huang<BR></DIV>
<DIV><FONT size=2>
<TABLE width="100%">
<TBODY>
<TR>
<TD width="100%">
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=gmail_quote>2008/4/8 <<A
href="mailto:ph0007@ustc.edu">ph0007@ustc.edu</A>>:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV bgcolor="#eaeaea"><FONT size=2><FONT face=ËÎÌå>Hi,Arlindo da
Silva£¬</FONT></FONT>
<DIV> </DIV>
<DIV>I am a grads user. As your introduction, I am very interested in
PyGrADS. But I have never known about Python.</DIV>
<DIV>Today I have a try. The installation is easy. There are some
question about the PyGrADS.</DIV>
<DIV> </DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV><SPAN class=Apple-style-span style="FONT-STYLE: italic">Which
package exactly did you install?</SPAN></DIV>
<DIV> </DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV bgcolor="#eaeaea">
<DIV></DIV>
<DIV>1. PATH:</DIV>
<DIV>The install package didn't add the Python PATH to the OS search
PATH automatically.</DIV>
<DIV>I added
"C:\Python25;C:\Python25\Lib\site-packages;C:\Python25\Scripts" to the
end of system's PATH. I don't know whether it is enough.</DIV>
<DIV> </DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV><SPAN class=Apple-style-span style="FONT-STYLE: italic">You need
check a box during setup for having your PATH modified automatically.
The only thing you need is C:\Python25. Remeber, Windows cannot start
Python scripts directly.</SPAN></DIV>
<DIV><BR></DIV>
<DIV> </DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV bgcolor="#eaeaea">
<DIV></DIV>
<DIV>2. "From your OS the command line enter: % pygrads -h"</DIV>
<DIV>The windows command line can just run executable file such as
.exe and .com. But I cannot find the executable file about pygrads
<IMG src="cid:__0@Foxmail.net">. The only way is double-click the file
"pygrads.py" in "C:\Python25\Scripts", which is the same
as clicking the shortcut in windows start manu.</DIV>
<DIV></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV><SPAN class=Apple-style-span style="FONT-STYLE: italic">That is
right, if you would like to run Python from the command line you would
need to run a Unix shell such as bash pr csh. Or else, you will need to
prepare bat files for starting your python scripts.</SPAN></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV bgcolor="#eaeaea">
<DIV> </DIV>
<DIV>3. How to use other IDEs such as IDLE and Pythonwin with
PyGrads?</DIV>
<DIV></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV><SPAN class=Apple-style-span style="FONT-STYLE: italic">There is
PyGrADS and pygrads. If you write scripts that use the modules provided
by PyGrADS, start IDLE and then open yourscript.py that uses the PyGrADS
modules. Now, 'pygrads' is a frontend to ipython, a command line
environment of its own, you do not run it under it Pythonwin shell;
pygrads is actually a cover for IPython.</SPAN></DIV>
<DIV> </DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV bgcolor="#eaeaea">
<DIV> </DIV>
<DIV>4. What's the relationship among Python, IPython, PyGrads and
Grads?</DIV>
<DIV> </DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>This is explained in the Wiki:</DIV>
<DIV><BR></DIV>
<DIV> <A
href="http://opengrads.org/wiki/index.php?title=Python_Interface_to_GrADS#Microsoft_Windows">http://opengrads.org/wiki/index.php?title=Python_Interface_to_GrADS#Microsoft_Windows</A><BR></DIV>
<DIV><BR></DIV>
<DIV> </DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV bgcolor="#eaeaea">
<DIV></DIV>
<DIV>5. Could you advise a well-suited custom when using PyGrads?
</DIV>
<DIV> </DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Read the wiki and follow the links, specially the Win32 specific
ones. Get some basic familiarity with Pyhton, and Python under Win32
first. It will help.</DIV>
<DIV><BR></DIV>
<DIV> Arlindo</DIV>
<DIV><BR></DIV>
<DIV> </DIV></DIV><BR clear=all><BR>-- <BR>Arlindo da Silva<BR><A
href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</A>
</BLOCKQUOTE></TD></TR></TBODY></TABLE></FONT></DIV>
<DIV><FONT face=ËÎÌå size=2></FONT> </DIV></BODY></HTML>