<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&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; ti = 62<BR>while ti &lt;= 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>&nbsp;&nbsp;&nbsp; 'clear'<BR>&nbsp;&nbsp;&nbsp; 'set dfile 1'<BR>&nbsp;&nbsp;&nbsp; 'set t ' ti<BR>&nbsp;&nbsp;&nbsp; 'set lat 10 50'<BR>&nbsp;&nbsp;&nbsp; 'set lon 20 110'<BR>&nbsp;&nbsp;&nbsp;
 'set z 1'<BR>&nbsp;&nbsp;&nbsp; 'set ave(z 1,ti=62,ti=153)'<BR>&nbsp;&nbsp;&nbsp; 'u=uwnd'<BR>&nbsp;&nbsp;&nbsp; 'set dfile 2'<BR>&nbsp;&nbsp;&nbsp; 'set t ' ti<BR>&nbsp;&nbsp;&nbsp; 'set z 1'<BR>&nbsp;&nbsp;&nbsp; 'set ave(z 1,ti=62,ti=153)'<BR>&nbsp;&nbsp;&nbsp; 'v=vwnd'<BR>&nbsp;&nbsp;&nbsp; 'set gxout shaded'<BR>&nbsp;&nbsp;&nbsp; 'set csmooth on'<BR>&nbsp;&nbsp;&nbsp; 'set grid off'<BR>&nbsp;&nbsp;&nbsp; 'set cint 0.00001'<BR>&nbsp;&nbsp;&nbsp; 'set black -1e-06 1e-06'<BR>&nbsp;&nbsp;&nbsp; 'set font 2'<BR>&nbsp;&nbsp;&nbsp; 'set xlopts 1 5 0.14'<BR>&nbsp;&nbsp;&nbsp; 'set ylopts 1 5 0.14'<BR>&nbsp;&nbsp;&nbsp; 'display hcurl(u,v)/0.00001'<BR>&nbsp;&nbsp;&nbsp; 'run cbarn'<BR>&nbsp;&nbsp;&nbsp; 'set dfile 3'<BR>&nbsp;&nbsp;&nbsp; 'set t ' ti<BR>&nbsp;&nbsp;&nbsp; 'set lat 10 50'<BR>&nbsp;&nbsp;&nbsp; 'set lon 20 110'<BR>&nbsp;&nbsp;&nbsp; 'set z 1'<BR>&nbsp;&nbsp;&nbsp; 'set ave(z 1,ti=62,ti=153)'<BR>&nbsp;&nbsp;&nbsp; 'set gxout contour'<BR>&nbsp;&nbsp;&nbsp; 'set
 csmooth on'<BR>&nbsp;&nbsp;&nbsp; 'set grid off'<BR>&nbsp;&nbsp;&nbsp; 'set cint 25'<BR>&nbsp;&nbsp;&nbsp; 'set clskip 2'<BR>&nbsp;&nbsp;&nbsp; 'set font 2'<BR>&nbsp;&nbsp;&nbsp; 'set cthick 6'<BR>&nbsp;&nbsp;&nbsp; 'set xlopts 1 5 0.14'<BR>&nbsp;&nbsp;&nbsp; 'set ylopts 1 5 0.14'<BR>&nbsp;&nbsp;&nbsp; 'set ccolor 1'<BR>&nbsp;&nbsp;&nbsp; 'set map 1'<BR>&nbsp;&nbsp;&nbsp; 'display hgt'<BR>&nbsp;&nbsp;&nbsp; 'draw title Vorticity 700hPa and Geop.Height 200hPa-' ti''<BR>&nbsp; 'printim Vort&amp;Hgt200mb' ti '.gif gif x1200 y1000 white'<BR>&nbsp;&nbsp;&nbsp; ti = ti + 5<BR>ENDWHILE<BR>say</div>  <div>&nbsp;</div><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com