<div>Dear Charles,</div> <div> </div> <div>Thank you for your inforamtion. </div> <div> </div> <div>with best regards<BR><BR><B><I>Charles Seman <Charles.Seman@NOAA.GOV></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">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> <div></div> <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></BLOCKQUOTE><BR><BR><BR><DIV>
<DIV>
<DIV>
<DIV><FONT face=arial></FONT> </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>
<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.