<div dir="ltr"><div>maybe the netCDF operators (NCO) or Climate Data Operators (CDO) would be best<br></div><div><br></div><div>NCO [***untested***]<br></div><div><pre><i>ncks </i>-d Time,0,9 wrfout...nc wrfout_..._<a href="http://0-9.nc">0-9.nc</a><br><i>ncks </i>-d Time,10,19 wrfout...nc wrfout_..._<a href="http://10-19.nc">10-19.nc</a><br><br><br></pre><pre>CDO [?]<br><br><br></pre><pre><br></pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 27, 2022 at 10:44 PM Lyndz via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>