<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&nbsp;</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.&nbsp;</div><div class=""><br class=""></div><div class="">year = (/"2007","2008","2009","2010","2011","2012","2013"/)</div><div class="">diri &nbsp; &nbsp;= "/Users/spark/vertical/00_DATA/20_JRA-55/" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; path to file</div><div class="">do ii=0,6</div><div class=""><br class=""></div><div class="">&nbsp; fili &nbsp; &nbsp;= "fcst_phy3m125.231_mflux."+year(ii)+"01_"+year(ii)+"12.allen136024"</div><div class="">&nbsp; varname = "MFLUX_GDS0_ISBL_S130"</div><div class="">&nbsp; filenc &nbsp; &nbsp; &nbsp; = addfile (diri+fili+".nc", "r") &nbsp; &nbsp; &nbsp;; entire file</div><div class="">&nbsp; mf &nbsp; = filenc-&gt;$varname$ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; (time, ver, lat, lon)</div><div class=""><br class=""></div><div class="">&nbsp; time =filenc-&gt;initial_time0</div><div class="">&nbsp; lev =filenc-&gt;lv_ISBL1</div><div class="">&nbsp; lat =filenc-&gt;g0_lat_2</div><div class="">&nbsp; lon =filenc-&gt;g0_lon_3</div><div class="">&nbsp; mf@_FillValue=1e+20</div><div class=""><br class=""></div><div class="">printVarSummary(mf)</div><div class=""><br class=""></div><div class="">&nbsp; ntim = dimsizes(time)</div><div class="">&nbsp; nlev = dimsizes(lev)</div><div class="">&nbsp; nlat = dimsizes(lat)</div><div class="">&nbsp; nlon = dimsizes(lon)</div><div class="">&nbsp; nyears = ntim/12</div><div class=""><br class=""></div><div class=""><b class="">&nbsp; mfreshape = reshape(mf,(/nyears,12,nlev,nlat,nlon/)) &nbsp;:an error occurs here</b></div><div class="">&nbsp; printVarSummary(mfreshape) &nbsp;</div><div class=""><br class=""></div><div class="">Thank you</div><div class="">Sun-</div><div class=""><br class=""></div></body></html>