<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear NCL users<div class=""><br class=""></div><div class="">I have a file it contains 12 months data (ec550aer_aero_NorESM1-M_historicalExt_r1i1p1_<b class="">201201-201212</b>.nc). I want to make file for each month. What nil function I should use? I tried to use reshape but It gives me </div><div class="">fatal:_NclBuildArray: each element of a literal array must have the same dimension sizes, at least one item doesn’t (near L30). If I made mistake in the script please help me what I did wrong or if I have to use other function.</div><div class=""><br class=""></div><div class="">I do appreciate any helps. </div><div class=""><br class=""></div><div class="">year = (/"2007","2008","2009","2010","2011","2012","2013"/)</div><div class="">diri = "/Users/spark/vertical/00_DATA/20_JRA-55/" ; path to file</div><div class="">do ii=0,6</div><div class=""><br class=""></div><div class=""> fili = "fcst_phy3m125.231_mflux."+year(ii)+"01_"+year(ii)+"12.allen136024"</div><div class=""> varname = "MFLUX_GDS0_ISBL_S130"</div><div class=""> filenc = addfile (diri+fili+".nc", "r") ; entire file</div><div class=""> mf = filenc->$varname$ ; (time, ver, lat, lon)</div><div class=""><br class=""></div><div class=""> time =filenc->initial_time0</div><div class=""> lev =filenc->lv_ISBL1</div><div class=""> lat =filenc->g0_lat_2</div><div class=""> lon =filenc->g0_lon_3</div><div class=""> mf@_FillValue=1e+20</div><div class=""><br class=""></div><div class="">printVarSummary(mf)</div><div class=""><br class=""></div><div class=""> ntim = dimsizes(time)</div><div class=""> nlev = dimsizes(lev)</div><div class=""> nlat = dimsizes(lat)</div><div class=""> nlon = dimsizes(lon)</div><div class=""> nyears = ntim/12</div><div class=""><br class=""></div><div class=""><b class=""> mfreshape = reshape(mf,(/nyears,12,nlev,nlat,nlon/)) :an error occurs here</b></div><div class=""> printVarSummary(mfreshape) </div><div class=""><br class=""></div><div class="">Thank you</div><div class="">Sun-</div><div class=""><br class=""></div></body></html>