<div dir="ltr"><div>Hello:</div><div><br></div><div>Given that NCL is notoriously slow at handling large IO files, you can also pre-process the wrfout files with a Fortran program using the NETCDF built-in functions ("use netcdf" and compile with appropriate netcdf libs/include files) such as:</div><div><br></div><div>! get v ID<br>      status = NF90_INQ_VARID(ncid,'V',variddat)<br>      if (status /= nf90_noerr) call handle_err(status)<br>! get v array<br>      status = NF90_GET_VAR(ncid,variddat,vv,start=(/nxstart,nystart,1/),stride=(/xstride,ystride,zstride/))<br>      if (status /= nf90_noerr) call handle_err(status)</div><div><br></div><div>In NF90_GET_VAR() you can either specify a start-end point for each dimension and/or use striding. Another way of reducing the IO size at runtime is to remove unwanted variables in the namelist (function of maxdom) via the flag:</div><div><br></div><div>&time_control</div><div>...<br></div><div>iofields_filename                   = "my_iofields_list.txt", "my_iofields_list.txt"</div><div><br></div><div><br></div><div>where:</div><div><br></div><div>> cat my_iofields_list.txt<br></div><div><br></div><div>-:h:0:glw,pot,vt_dbz_wt,rainsh,tlwdn,tlwup,slwdn,slwup,tswdn,tswup,sswdn,sswup,p_hyd,sciona,sh2o,smcrel,tke_pbl,tslb,cldfra,el_pbl,qnccn,qncloud,qnrain,qnhail,qngraupel,qnice,qvgraupel,qnsnow,smois,acgrdflx,achfx,aclhf,albbck,albedo,avg_fuel_frac,canwat<br>-:h:0:cosalpha,e,emiss,f,graupelnc,grdflx,hailnc,hml,huml,hvml,isltyp,ivgtyp,lai,lu_index,mapfac_m,mapfac_mx,mapfac_my,mapfac_u,mapfac_ux,mapfac_uy,mapfac_v,mapfac_vx,mapfac_vy,mf_vx_inv,nest_pos,noahres,mu,mub,olr,pblh,q2,seaice,sfroff,sinalpha,snopcx<br>-:h:0:snow,snowc,snowh,snownc,soiltb,sr,sstsk,swdown,swnorm,t0ml,t2,th2,tml,tmn,tmoml,tsk,uah,udroff,up_heli_max,ust,vah,vegfra,xicem,xland,xlat_u,xlat_v,xlong_u,xlong_v,h0ml,clnox<br></div><div><br></div><div>Cheers and hope this helps,<br></div><div><br></div><div>Alex-<br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-------------------------------------------------------------<br>Alexandre Fierro, PhD<br>Research Scientist-<br>National Severe Storms Laboratory (NSSL/NOAA)<br><b style="font-weight:normal">The Cooperative Institute for Mesoscale Meteorological
        Studies</b> (OU/NOAA)<br><br>"Yesterday is History, Tomorrow is a Mystery and Today is a Gift; That is why it is called the Present"  <br><br>"There are only 10 types of people in the world:<br>Those who understand binary, and those who don't"  <br><br>"My opinions are my own and not representative of OU, NSSL,<br>AOML, HRD, LANL or any affiliates."<br>         ^.^<br>       (o  o)<br>     /(   V   )\<br>   ---m---m----<br></div></div></div></div>
<br><div class="gmail_quote">On 12 June 2018 at 12:56, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>Are you aware that you can write some of the wrf output variables to an external file?</div><div><br></div><div>




<span></span>





<p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures">;---Write variables to file </span></p><p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1000072790508343851gmail-Apple-converted-space"><br></span></span></p><p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1000072790508343851gmail-Apple-converted-space">Note, the names on the right are obtained with wrf_user..., for example:</span></span></p><p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1000072790508343851gmail-Apple-converted-space"><br></span></span></p><p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1000072790508343851gmail-Apple-converted-space">




<span></span>





</span></span></p><p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures">slp = wrf_user_</span><span class="m_-1000072790508343851gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">get</span><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures">var(a,"slp",it)</span></p>


                                             <p></p><p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1000072790508343851gmail-Apple-converted-space">(remove the ;)                                    </span></span></p>
<p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures">; <span class="m_-1000072790508343851gmail-Apple-converted-space">    </span>system("rm -f <a href="http://file_for_you.nc" target="_blank">file_for_you.nc</a>")</span></p>
<p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures">; <span class="m_-1000072790508343851gmail-Apple-converted-space">    </span>fout = addfile("<a href="http://file_for_you.nc" target="_blank">file_for_you.nc</a>","c")</span></p>
<p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures">; <span class="m_-1000072790508343851gmail-Apple-converted-space">    </span>fout->pett_fgen = pett_fgen</span></p>
<p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures">; <span class="m_-1000072790508343851gmail-Apple-converted-space">    </span>fout->z_plane <span class="m_-1000072790508343851gmail-Apple-converted-space">  </span>= z_plane</span></p>
<p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures">; <span class="m_-1000072790508343851gmail-Apple-converted-space">    </span>fout->xlat<span class="m_-1000072790508343851gmail-Apple-converted-space">      </span>= xlat</span></p>
<p class="m_-1000072790508343851gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1000072790508343851gmail-s1" style="font-variant-ligatures:no-common-ligatures">; <span class="m_-1000072790508343851gmail-Apple-converted-space">    </span>fout->xlong <span class="m_-1000072790508343851gmail-Apple-converted-space">    </span>= xlong</span></p>


<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 12, 2018 at 5:37 PM M Mortezapour <<a href="mailto:mortezapour88@gmail.com" target="_blank">mortezapour88@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I have some wrfout files that I should use them in another program, but they are too large. I need to crop a small part of them. I've searched a lot, but I couldn't find an efficient way. Any help would be appreciated.</div><div><br></div><div>Thanks,</div><div>Mari<br></div></div>
______________________________<wbr>_________________<br>
Wrf-users mailing list<br>
<a href="mailto:Wrf-users@ucar.edu" target="_blank">Wrf-users@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/wrf-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-1000072790508343851gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
<br>______________________________<wbr>_________________<br>
Wrf-users mailing list<br>
<a href="mailto:Wrf-users@ucar.edu">Wrf-users@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/wrf-users</a><br>
<br></blockquote></div><br></div>