<br><font size=2 face="sans-serif">Jose,</font>
<br><font size=2 face="sans-serif">You need to put your timestep offsets
within the quotes. Here's my suggested re-write (including a couple other
corrections). Good luck! </font>
<br><font size=2 face="sans-serif">Stephen McMillan</font>
<br>
<br><font size=2><tt>'reinit'<br>
'open arc.ctl'<br>
</tt></font>
<br><font size=2><tt>i=6</tt></font>
<br><font size=2><tt>while (i>=6 & i<=360 )</tt></font>
<br><font size=2><tt>'set t 'i</tt></font>
<br><font size=2><tt>say 'time 'i</tt></font>
<br>
<br><font size=2><tt>'d 0.6*ke(t='i-2')+0.8*ke(t='i-1')+ke(t='i')+0.8*ke(t='i+1')+0.6*ke(t='i+2')'</tt></font>
<br>
<br><font size=2><tt>i=i+1</tt></font>
<br><font size=2><tt>endwhile</tt></font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Jose Augusto Paixao Veiga
<jaugusto@CPTEC.INPE.BR></b> </font>
<br><font size=1 face="sans-serif">Sent by: GRADSUSR@LIST.CINECA.IT</font>
<p><font size=1 face="sans-serif">08/17/2006 10:22 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
GRADSUSR@LIST.CINECA.IT</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">GRADSUSR@LIST.CINECA.IT</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">problems during loops</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br><font size=2><tt>Hi dear users<br>
I am triyng to write a very simple program using grads. The program is
put<br>
bellow<br>
</tt></font>
<br><font size=2><tt>'reinit'<br>
'open arc.ctl'<br>
</tt></font>
<br><font size=2><tt>i=6<br>
while (i>=6 & i<=360 )<br>
'set t ' i<br>
say time' 'i<br>
</tt></font>
<br><font size=2><tt>'d 0.6*ke(t='i'-2)+0.8*ke(t='i'-1)+ke(t='i')+0.8*ke(t='i'+1)+0.6*ke(t='i'+2)'<br>
</tt></font>
<br><font size=2><tt>i=i+1<br>
endwhile<br>
</tt></font>
<br><font size=2><tt>the error message is:<br>
</tt></font>
<br><font size=2><tt>tempo 6<br>
Syntax Error: Invalid dimension expression</tt></font>
<br><font size=2><tt>Expecting X/Y/Z/T/LAT/LON/LEV/TIME, found<br>
Variable name = ke<br>
Error ocurred at column 5</tt></font>
<br><font size=2><tt>DISPLAY error: Invalid expression<br>
Expression =</tt></font>
<br><font size=2><tt>0.1*ke(t=6-5)+0.2*ke(t=6-4)+0.4*ke(t=6-3)+0.6*ke(t=6-2)+0.8*ke(t=6-1)+ke(t=6)+0.8*ke(t=6+1)+0.6*ke(t=6+2)+0.4*ke(t=6+3)+0.2*ke(t=6+4)+0.1*ke(t=6+5)<br>
</tt></font>
<br>
<br><font size=2><tt>In this case what could be done?<br>
</tt></font>
<br><font size=2><tt>Thanks in advance for comments and help<br>
José</tt></font><font size=2 face="sans-serif"><br>
<br>
************************************************************************<br>
The information contained in this e-mail message is intended only for the
personal and confidential use of the recipient(s) named above and may contain
information that is privileged, confidential, and/or proprietary to Planalytics,
Inc. and its subsidiaries and affiliated companies. This message
may be an attorney-client communication and as such is privileged and confidential.
If the reader of this message is not the intended recipient or an
agent responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and that
any review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify the sender immediately by e-mail, and delete the original
message.<br>
************************************************************************</font>
<br>