do_loop

From: Aaron Goldner <golgicomplex3_at_nyahnyahspammersnyahnyah>
Date: Fri, 22 May 2009 08:38:19 -0700

Hi,
Below I have copied my code. I have 4X daily data with 124 time steps and I am trying to use a do loop to average the first two time steps in order to make it 2X daily. My error from the loop is
fatal:Dimension (time) of (xx) does not have an associated coordinate variablefatal:Execute: Error occurred at or near line 118 in file daily_bandpass.ncl

my code:
xx = VQ_bandi(lev_p|:,lat|:,lon|:,time|:)time = c->time
a_new = new((/dimsizes(xx&lev_p),dimsizes(xx&lat),dimsizes(xx&lon),62/),float)
copy_VarMeta(xx,a_new)printVarSummary(a_new)printVarSummary(xx)
do i = 0,61 time_start = i*2 time_end = time_start+1 a_new(:,:,:,i) = dim_avg_Wrap(xx(:,:,:,{time_start:time_end}))
end do

any advice is appreciated,
Sincerely,Aaron Goldner
_________________________________________________________________
Insert movie times and more without leaving HotmailŪ.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri May 22 2009 - 09:38:19 MDT

This archive was generated by hypermail 2.2.0 : Tue May 26 2009 - 10:17:15 MDT