Your "time" is of the form yyyymmdd
yyyy = time/10000
mmdd = time - yyyy*10000
mm = mmdd/100
nmos = 12
aveMonth = new((/nmos,nlat,mlon/),typeof(x) \
,getFillValue(x))
do nmo=0,nmos-1
month = nmo+1
imo = ind(mm.eq.month)
aveMonth(nmo,:,:) = dim_avg_n( x(imo,:,:), 0 )
end do
Good luck
On 02/25/2010 01:17 PM, Stergios Misios wrote:
> Dear Dennis,
> Thank you for answering.
> Now it makes sense why i was getting erroneous results. I need the time
> infiormation...I have an non uniform time series, some months from one
> year some months of another. Basically i apply a selection rule on my
> time series...
> So is there any fast way to calculate annual cycle from data with
> different number of occurrences per month? In other words average all
> Januaries, Februaries and so on... separately
> If not i'll figure out something.
>
> Stergios
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- ====================================================== Dennis J. Shea tel: 303-497-1361 | P.O. Box 3000 fax: 303-497-1333 | Climate Analysis Section | Climate & Global Dynamics Div. | National Center for Atmospheric Research | Boulder, CO 80307 | USA email: shea 'at' ucar.edu | ====================================================== _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Feb 25 14:52:51 2010
This archive was generated by hypermail 2.1.8 : Mon Mar 01 2010 - 08:49:37 MST