Hello,
You can use runave or runave_Wrap to do this:
http://www.ncl.ucar.edu/Document/Functions/Built-in/runave.shtml
http://www.ncl.ucar.edu/Document/Functions/Contributed/runave_Wrap.shtml
for instance, starting off with your data array, and assuming the first
month of the data is January and the last is December:
temp = runave_Wrap(data(lat|:,lon|:,time|:),2,0)
data_djavg = temp(:,:,11::12) ; grab December timestep, which
represents Dec/Jan average
delete(temp)
delete(data)
Take a look at the documentation for the different possible values of
opt. In the above example i set opt to 0, and thus the last
December/January average will be set to _FillValue as January is not
present.
Hope that helps.
Adam
Sabeerali(sebi) wrote:
> Dear all,
>
> I have monthly sst anomaly from 1982 to 2005..The dimension of
> the data is (276,89,180,276) .Where (276,89,180) are time,lat, lon...By
> using month_to_season I can find mean of three months..How I can find
> the mean of two months.(eg: Dec and Jan)
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Tue Jul 07 2009 - 11:50:39 MDT
This archive was generated by hypermail 2.2.0 : Wed Jul 08 2009 - 14:48:16 MDT