<div>Dear Grads users,</div> <div>I am new to Grads and I have a question related to getting time average. I have written a sript to compute the pentad averages of variables. I don't know what's wrong with it which instead of pentad averages(for example in the following script: the pentad for 62-66, 67-71,72-76,......) it is displaying just for the first day of each pentad(62th,67th,72th,...)?</div> <div>Thank you very much for your assistance</div> <div>A. Mofidi</div> <div>* script For Computing pentad Vorticity and Hgt 200hpa-JJA <BR> ti = 62<BR>while ti <= 153<BR>'sdfopen ncdata\hour\uwind200mb-1apr-31oct1994-daily.nc'<BR>'sdfopen ncdata\hour\vwind200mb-1apr-30sep1994-daily.nc'<BR>'sdfopen ncdata\hour\hgt200mb-1apr-30sep1994-daily.nc'<BR> 'clear'<BR> 'set dfile 1'<BR> 'set t ' ti<BR> 'set lat 10 50'<BR> 'set lon 20 110'<BR>
'set z 1'<BR> 'set ave(z 1,ti=62,ti=153)'<BR> 'u=uwnd'<BR> 'set dfile 2'<BR> 'set t ' ti<BR> 'set z 1'<BR> 'set ave(z 1,ti=62,ti=153)'<BR> 'v=vwnd'<BR> 'set gxout shaded'<BR> 'set csmooth on'<BR> 'set grid off'<BR> 'set cint 0.00001'<BR> 'set black -1e-06 1e-06'<BR> 'set font 2'<BR> 'set xlopts 1 5 0.14'<BR> 'set ylopts 1 5 0.14'<BR> 'display hcurl(u,v)/0.00001'<BR> 'run cbarn'<BR> 'set dfile 3'<BR> 'set t ' ti<BR> 'set lat 10 50'<BR> 'set lon 20 110'<BR> 'set z 1'<BR> 'set ave(z 1,ti=62,ti=153)'<BR> 'set gxout contour'<BR> 'set
csmooth on'<BR> 'set grid off'<BR> 'set cint 25'<BR> 'set clskip 2'<BR> 'set font 2'<BR> 'set cthick 6'<BR> 'set xlopts 1 5 0.14'<BR> 'set ylopts 1 5 0.14'<BR> 'set ccolor 1'<BR> 'set map 1'<BR> 'display hgt'<BR> 'draw title Vorticity 700hPa and Geop.Height 200hPa-' ti''<BR> 'printim Vort&Hgt200mb' ti '.gif gif x1200 y1000 white'<BR> ti = ti + 5<BR>ENDWHILE<BR>say</div> <div> </div><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com