[gradsusr] How to average defined variables

Zaib-un- Nisa zaib.envsc at gmail.com
Sat Jul 11 08:01:52 EDT 2015


*Hi,*

Can anyone tell me, how can i get average of defined variables, i have
averaged mean sea level pressure for three months of each year, now i want
to get combined average result of all years;

for example,

here i have averaged set of dec,jan, feb of each year and numbered them as
sl1, sl2 and so on. now i want to extract average of sl1, sl2, sl3..... how
will it be possible!

Script is as follows;

'reinit'
'sdfopen djf00-12.nc'
'set display color white'
'c'
'set lat 0 60'
'set lon 0 120'
'set z 1'
'set e 1'
'define sl1=ave(msl/100,t=1,t=3)'
'define x1 = ave(u10,t=1,t=3)'
'define y1 = ave(v10,t=1,t=3)'

'define sl2=ave(msl/100,t=4,t=6)'
'define x2 = ave(u10,t=4,t=6)'
'define y2 = ave(v10,t=4,t=6)'

'define sl3=ave(msl/100,t=7,t=9)'
'define x3 = ave(u10,t=7,t=9)'
'define y3 = ave(v10,t=7,t=9)'

'define sl4=ave(msl/100,t=10,t=12)'
'define x4 = ave(u10,t=10,t=12)'
'define y4 = ave(v10,t=10,t=12)'

'define sl5=ave(msl/100,t=13,t=15)'
'define x5 = ave(u10,t=13,t=15)'
'define y5 = ave(v10,t=13,t=15)'

'define sl6=ave(msl/100,t=16,t=18)'
'define x6 = ave(u10,t=16,t=18)'
'define y6 = ave(v10,t=16,t=18)'

'define sl7=ave(msl/100,t=19,t=21)'
'define x7 = ave(u10,t=19,t=21)'
'define y7 = ave(v10,t=19,t=21)'

'define sl8=ave(msl/100,t=22,t=24)'
'define x8 = ave(u10,t=22,t=24)'
'define y8 = ave(v10,t=22,t=24)'

How can i get average of sl1,sl2,sl3...sl8.

stuck in the next step.


*Best,*
*Zaib-un-nisa*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150711/65766cb3/attachment-0001.html 


More information about the gradsusr mailing list