<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Dear Jeff,<BR> <BR>I manage to solve the error but another error is encountered :<BR> <BR>in my script ;<BR> <BR>'d
ave(wht,t='y',t='y+2')'
<BR>
<BR> <BR>sigwa=sublin(result,2)
<BR> <BR>sig_waves=subwrd(sigwa,4)
<BR> <BR>if
sig_waves=9.999e+20
<BR>SIG.incr="undefined"
<BR>else <BR>fmt =
'%4.1f' <BR>*SIG.incr=math_format(fmt,sig_waves) <BR><STRONG>SIG.incr=math_nint(sig_waves*10.0) --------> line 543 <BR></STRONG><BR>if
SIG.incr<3<BR>SIG.incr=3<BR>endif <BR>SIG.incr=math_format(fmt,SIG.incr/10)<BR>endif
<BR>SIG=SIG%","%SIG.incr <BR> <BR><BR>'d ave(mpr,t='y',t='y+2')'
<BR><BR>wavper=sublin(result,2)
<BR>wave_per.incr=subwrd(wavper,4) <BR>if
wave_per.incr=9.999e+20
<BR>PER.incr="undefined"
<BR>else
<BR>* <BR>PER.incr =
math_nint(wave_per.incr)<BR>endif
<BR>PER=PER%","%PER.incr </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>with same error message as previous one.</DIV>
<DIV> </DIV>
<DIV>Thank you very much.</DIV>
<DIV>Best Regards,</DIV>
<DIV>Antoy <BR><BR>--- On Wed, 11/18/09, Jeffrey Duda <jdduda@iastate.edu> wrote:<BR><BR><BR>From: Jeffrey Duda <jdduda@iastate.edu><BR>Subject: Re: my script error<BR>To: antoyc@yahoo.com<BR>Date: Wednesday, November 18, 2009, 12:25 AM<BR><BR><BR>Try putting line 454 and the one after it in single quotes. Since you're using these variables in a display command, they need to be defined outside the script.<BR><BR>Jeff Duda<BR><BR><BR>On Tue, Nov 17, 2009 at 2:09 AM, Antoy Chang <antoyc@yahoo.com> wrote:<BR><BR><BR><BR><BR><BR><BR>Dear All,<BR>Can someone here help me this script error, my script is as below :<BR><BR>'d wdr' <BR>wind_dirn.incr=subwrd result,4) <BR>if wind_dirn.incr=9.999e+20 <BR>wind_dirn.incr="undefined" <BR>else <BR>'define wind_dirn.incr = math_nint(wind_dirn.incr)' <BR>endif <BR>* <BR><BR>* <BR>*determine the resultant wind for three output times <BR>pi = 3.1415926 <BR>d2r = pi/180
<BR>r2d = 1/d2r <BR>fmt = '%-6.4f' <BR><BR>wamv=cos(0.0174532*wdr)*w10 -----> Line 454 <BR>wamu=sin(0.0174532*wdr)*w10<BR><BR>'d sum(wamu,t= 'y',t= 'y+2')' <BR>udirs=sublin(result,2) <BR>udir=subwrd(udirs,4)/3 <BR><BR> The error message : <BR> <BR>DEFINE error: Name too long; missing '='<BR>Non numeric args to numeric operation<BR>Error occurred processing function arguments<BR> Error occurred on line 454<BR> In file E\KC\WORK\Adhoc_~1\Langkawi.gs<BR>ga-><BR> <BR><BR><BR><BR>-- <BR>Jeff Duda<BR>Iowa State University<BR>Meteorology Graduate Student<BR>3134 Agronomy Hall<BR>www.meteor.iastate.edu/~jdduda<BR></DIV></td></tr></table><br>