pentad plots

kailasam muni krishna kailasam2005 at YAHOO.CO.IN
Sat Apr 15 08:34:20 EDT 2006


Dear Charles,

  Thank you for your inforamtion.

  with best regards

Charles Seman <Charles.Seman at NOAA.GOV> wrote:
  Dear Kailasam Muni Krishna,

Have you tried setting the "dfile" and time level?

'set dfile 1'
'set t 1'
'define ja1 = ave(uwnd.1,t=1,t=5)'
...

or try automating:
nyears = 35
*
*  year 1 to initialize sum...
*
'sdfopen uwnd.1970.nc'
'set lon 50 120'
'set lat 30 45'
'set z 3'
'set t 1'
'define ja1 = ave(uwnd,t=1,t=5)'
'define jansum = jansum + ja1'
* or if individual years are not required:
'define jansum = ave(uwnd,t=1,t=5)'
'close 1'
*
*  rest of years...
*
n = 2
while ( n <= nyears )
  yyyy = 1969 + n
  'sdfopen uwnd.'yyyy'.nc'
  'set lon 50 120'
  'set lat 30 45'
  'set z 3'
  'set t 1'
  'define ja'n' = ave(uwnd,t=1,t=5)'
  'define jansum = jansum + ja'n
* or if individual years are not needed later:
  'define jansum = jansum + ave(uwnd,t=1,t=5)'
  'close 1'
  n=n+1
endwhile
*
*  use first year to define average and display...
*
'sdfopen uwnd.1970.nc'
'set lon 50 120'
'set lat 30 45'
'set z 3'
'set t 1'
'define jan = jansum/'nyears
'd jan'

The above code has not been tested...

I hope this helps,
Chuck

kailasam muni krishna wrote:     Dear Users,

  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
it was not working . Please help me.

sdfopen uwnd.1970.nc
sdfopen uwnd.1971.nc
--------------------
--------------------
sdfopen uwnd.2004.nc
sdfopen uwnd.2005.nc
set lon 50 120
set lat 30 45
set z 3
define ja1 = ave(uwnd.1,t=1,t=5)
define ja2 = ave(uwnd.2,t=1,t=5)
---------------------------------
---------------------------------
define ja34 = ave(uwnd.34,t=1,t=5)
define ja35 = ave(uwnd.35,t=1,t=5)
define jan = (ja1+ja2+-----+ja34+ja35)/35'
d jan

  I hope some body will give a positive reply.

  with kind regards




  ===============================================================
  Mr.K.MUNI KRISHNA
RESEARCH SCHOLAR
DEPT.OF.METEOROLGOY & OCEANOGRAPHY
  PROF. ROKKAM RAMANADHAM LABORATORIES
ANDHRA UNIVERSITY
VISAKHAPATNAM
ANDHRA PRADESH - 530003
INDIA

Phone : +91-891-2844638 (O)
            +91-8514-247194 (R)
Fax :     +91-891-2525611





---------------------------------
  Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.



===============================================================
Mr.K.MUNI KRISHNA
RESEARCH SCHOLAR
DEPT.OF.METEOROLGOY & OCEANOGRAPHY
PROF. ROKKAM RAMANADHAM LABORATORIES
ANDHRA UNIVERSITY
VISAKHAPATNAM
ANDHRA PRADESH - 530003
INDIA

Phone : +91-891-2844638 (O)
            +91-8514-247194 (R)
Fax :     +91-891-2525611





---------------------------------
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20060415/3c2a72dd/attachment.html 


More information about the gradsusr mailing list