Thank you for sharing this.<div><br></div><div>Is terrain height included in z and do I need to subtract the terrain height ?<br><br>On Friday, March 5, 2021, Dennis Shea <<a href="mailto:shea@ucar.edu">shea@ucar.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>The simplest would be</div><div><br></div><div> a = addfile("wrf...","r")<br> <br> tc = wrf_user_getvar(a,"tc",-1) ; T in C<br> p = wrf_user_getvar(a, "pressure",-1) ; grid point pressure<br> z = wrf_user_getvar(a, "z",-1) ; grid point height<br><br> printVarSummary(tc)<br><br> nt = 1<br> nl = 50<br> ml = 30<br> TC = tc(nt,:,nl,ml)<br> P = p(nt,:,nl,ml)<br><br> wks = gsn_open_wks ("png","WRF_VERT_PROF") ; send graphics to PNG file<br><br> res = True ; plot mods desired<br> res@tiMainString = " Sample Profile Plot" ; add title<br> res@trYReverse = True ; reverse Y-axis<br> plot = gsn_csm_xy (wks,TC,P,res) ; create plot<br> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 5, 2021 at 3:47 AM ali mughal via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">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">Dear all<div><br></div><div>Is there any example code available to plot vertical temperature profile from WRF ?</div><div><br></div>
______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div>