<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Kailasam Muni Krishna,<br>
<br>
Have you tried setting the "dfile" and time level?<br>
<br>
'set dfile 1'<br>
'set t 1'<br>
'define ja1 = ave(uwnd.1,t=1,t=5)'<br>
...<br>
<br>
or try automating:<br>
nyears = 35<br>
*<br>
* year 1 to initialize sum...<br>
*<br>
'sdfopen uwnd.1970.nc'<br>
'set lon 50 120'<br>
'set lat 30 45'<br>
'set z 3'<br>
'set t 1'<br>
'define ja1 = ave(uwnd,t=1,t=5)'<br>
'define jansum = jansum + ja1'<br>
* or if individual years are not required:<br>
'define jansum = ave(uwnd,t=1,t=5)'<br>
'close 1'<br>
*<br>
* rest of years...<br>
*<br>
n = 2<br>
while ( n <= nyears )<br>
yyyy = 1969 + n<br>
'sdfopen uwnd.'yyyy'.nc'<br>
'set lon 50 120'<br>
'set lat 30 45'<br>
'set z 3'<br>
'set t 1'<br>
'define ja'n' = ave(uwnd,t=1,t=5)'<br>
'define jansum = jansum + ja'n<br>
* or if individual years are not needed later:<br>
'define jansum = jansum + ave(uwnd,t=1,t=5)'<br>
'close 1'<br>
n=n+1<br>
endwhile<br>
*<br>
* use first year to define average and display...<br>
*<br>
'sdfopen uwnd.1970.nc'<br>
'set lon 50 120'<br>
'set lat 30 45'<br>
'set z 3'<br>
'set t 1'<br>
'define jan = jansum/'nyears<br>
'd jan'<br>
<br>
The above code has not been tested...<br>
<br>
I hope this helps,<br>
Chuck<br>
<br>
kailasam muni krishna wrote:
<blockquote
cite="mid20060402055024.19138.qmail@web8415.mail.in.yahoo.com"
type="cite">
<div>Dear Users,</div>
<div> </div>
<div>I have daily u-wind (ncep) netCDf files (1970-2005). I want to
prepare every year pentads and 35 years mean pentad plots from jan-
dec. I wrote a script but <br>
it was not working . Please help me.<br>
<br>
sdfopen uwnd.1970.nc<br>
sdfopen uwnd.1971.nc<br>
--------------------<br>
--------------------<br>
sdfopen uwnd.2004.nc<br>
sdfopen uwnd.2005.nc<br>
set lon 50 120<br>
set lat 30 45<br>
set z 3<br>
define ja1 = ave(uwnd.1,t=1,t=5)<br>
define ja2 = ave(uwnd.2,t=1,t=5)<br>
---------------------------------<br>
---------------------------------<br>
define ja34 = ave(uwnd.34,t=1,t=5)<br>
define ja35 = ave(uwnd.35,t=1,t=5)<br>
define jan = (ja1+ja2+-----+ja34+ja35)/35'<br>
d jan<br>
<br>
I hope some body will give a positive reply.<br>
<br>
with kind regards<br>
</div>
<br>
<br>
<div>
<div>
<div>
<div> </div>
<div><font face="arial">===============================================================</font></div>
<div><font face="arial">Mr.K.MUNI KRISHNA</font> <br>
RESEARCH SCHOLAR <br>
DEPT.OF.METEOROLGOY & OCEANOGRAPHY </div>
<div>PROF. ROKKAM RAMANADHAM LABORATORIES<br>
ANDHRA UNIVERSITY <br>
VISAKHAPATNAM <br>
ANDHRA PRADESH - 530003 <br>
INDIA <br>
<br>
Phone : +91-891-2844638 (O) <br>
+91-8514-247194 (R) <br>
Fax : +91-891-2525611</div>
</div>
</div>
</div>
<p> </p>
<hr size="1">Jiyo cricket on <a
href="http://us.rd.yahoo.com/mail/in/mailcricket/*http://in.sports.yahoo.com/cricket/">Yahoo!
India cricket</a><br>
<a
href="http://us.rd.yahoo.com/mail/in/mailmobilemessenger/*http://in.mobile.yahoo.com/new/messenger/">Yahoo!
Messenger Mobile</a> Stay in touch with your buddies all the time.
</blockquote>
</body>
</html>