<div dir="ltr"><div>Dear NCL-experts,</div><div><br></div><div>Has anyone tried splitting a large wrfout file using NCL and writing the output to the original wrfout format? I am encountering an nclMalloc issue when processing large wrfout files.<br></div><div><br></div><div>Say I just to get specific time steps such as this:</div><div><br></div><div>  load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"<br>  filename = "./wrfout_d01_2011-12-12_12_00_00"<br>  a     = addfile(filename,"r")<br>  times = wrf_user_getvar(a,"times",-1)                 <br>  theta_a = wrf_user_getvar(a,"theta",-1)<br>  pv_a    = wrf_user_getvar(a,"pvo",-1)                     ;potential vorticity<br><br>  theta = theta_a(80:90,:,:,:)<br>  pv = pv_a(80:90,:,:,:)<br></div><div><br></div><div><br></div><div>How do I save this to the original wrfout format?</div><div><br></div><div>I'll appreciate any help on this.</div><div><br></div><div>-Lyndz<br></div></div>