<div dir="ltr"><div dir="ltr"><div>Hello,</div><div>I am using ncl for plotting contour. I am trying to average 18th hour variable for a month time period. My each wrfout file has 24 (0,23) time slabs in it. I wish to average 18th hour.</div><div><br></div><div>I wrote this</div><div><br></div><div>FILES = systemfunc ("ls ../wrfout_d02_2011-05-*") ; file paths</div><div>aa    = addfiles (FILES+".nc", "r")     ;add multiple files</div><div>ListSetType(aa,"join")</div><div>vars_to_avg = (/"eth"/)</div><div>nvars = dimsizes(vars_to_avg)</div><div>Mpan = aa[:]->$vars_to_avg(0)$</div><div><b>Mpan_18 = Mpan(;,{18},0,:,:)    ; (ndays,18 is the absolute value of time,nlevels,nlat,nlon)</b></div><div>Mpan_avg_over_time =dim_avg_n_Wrap(Mpan_18,0)</div><div>Mpan_avg_over_time=o3_avg2D</div><div>o3_avg2D = o3_avg2D*1000</div><div>  o3_avg2D@lat2d = wrf_user_getvar(a,"XLAT",it)   ; latitude/longitude</div><div>  o3_avg2D@lon2d = wrf_user_getvar(a,"XLONG",it)  ; required for plotting</div><div>plotting options--</div><div>contour</div><div>------</div><div><br></div><div>The line <b>Mpan_18 = Mpan(;,{18},0,:,:)    ; (ndays,18 is the absolute value of time,nlevels,nlat,nlon) is showing error, as</b> "<span style="color:rgb(255,0,0)">Dimension (Time) of (Mpan) does not have an associated coordinate variable".</span></div><div><span style="color:rgb(255,0,0)"><br></span></div><div><span style="color:rgb(255,0,0)">How do I write to make it work?</span></div><div><span style="color:rgb(255,0,0)"><br></span></div><div><div dir="ltr" class="m_1510469995556505146gmail_signature"><div>kim</div></div></div></div></div>