[gradsusr] Help needed in getting annual mean from time series data

Jennifer Adams jma at cola.iges.org
Mon May 24 08:38:17 EDT 2010


Dear Sudev,

On May 21, 2010, at 11:25 AM, sudev das M P wrote:

> Dear Grads users,
> I am a beginner in GrADS.
> I have a multi-year time series data. I want to get the annual mean  
> in this data.
>
> Please see that from the following I can get monthly time series  
> plot, and it is working fine.
>
> 'set lon 30'
> 'set lat 5'
>
> 'set t 2 302'
Why is this not 'set t 1 302' ?

>
> *------------------------
> *Monthly time series
> *------------------------
> 'define sstmonth=aave(sst.1,lon=30,
> lon=78,lat=5,lat=31)'

> 'set gxout line'
> 'set cmark 4'
> 'set grads off'
> 'set ccolor 9'
> 'd sstmonth'
>
> In the same plot, I want to have one more curve showing the annual  
> mean.
> I mean 26 annual mean values for the 26 years.
>
> I don't know how to do this.
Try this after you have defined sstmon:

'set t 1 12'
'sstann = ave(sstmonth,t+0,t=302,12)'
'modify sstann seasonal'

--Jennifer

>
> I will highly appreciate if someone can help me in this.
>
> Thanks,
>
> Sudev
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100524/cf720072/attachment-0003.html 


More information about the gradsusr mailing list