<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear NCL community <div><br></div><div>I present  outputs of height variable "z"  from WRF out file at two different locations.</div><div><br></div><div><div> a=addfile("../wrfout_d05_2016-04-01_00:00:00","r")</div></div><div>z = wrf_user_getvar(a, "z",-1)<br></div><div> printVarSummary(z)<br></div><div><div>Variable: z</div><div>Type: float</div><div>Total Size: 3776346000 bytes</div><div>            944086500 values</div><div>Number of Dimensions: 4</div><div><b>Dimensions and sizes:   [Time | 697] x [bottom_top | 50] x [south_north | 129] x [west_east | 210]</b></div><div><b>Coordinates:</b></div><div>Number Of Attributes: 6</div><div> FieldType :   104</div><div> MemoryOrder : XYZ</div><div> description : Height</div><div> units :       m</div><div> stagger :</div><div> coordinates : XLONG XLAT</div></div><div> <b>height_level = z(0,0,1,1)</b><br></div><div>print(height_level)<br></div><div><b>(0)     5.383059</b><br></div><div><b><br></b></div><div><div><b>height_level2 = z(0,0,68,160)</b></div><div><b>(0)     18.77475</b><br></div><div style="font-weight:bold"><br></div></div><div><br></div><div>My question is <b>"Is terrain height included in these two outputs" or otherwise what is causing the difference between the two locations</b>.  Kindly note that the elevation above the mean sea level of the 2nd location is 15m while the height above ground level is 2.3 m.</div><div></div><div><br></div><div>Kindly also see all the 50 outputs at these two locations below. Please note that the difference between the two remains 13-14 until the 49th level. </div><div><div><span style="white-space:pre">      </span>z(0,0,1,1)<span style="white-space:pre">                   </span>z(0,0,68,160)</div><div>0<span style="white-space:pre">        </span>5.383059<span style="white-space:pre">                     </span>18.77475</div><div>1<span style="white-space:pre">     </span>16.15251<span style="white-space:pre">                     </span>29.5406</div><div>2<span style="white-space:pre">      </span>26.92861<span style="white-space:pre">                     </span>40.31371</div><div>3<span style="white-space:pre">     </span>37.71136<span style="white-space:pre">                     </span>51.09355</div><div>4<span style="white-space:pre">     </span>48.49981<span style="white-space:pre">                     </span>61.88059</div><div>5<span style="white-space:pre">     </span>59.83451<span style="white-space:pre">                     </span>73.21494</div><div>6<span style="white-space:pre">     </span>72.31205<span style="white-space:pre">                     </span>85.69195</div><div>7<span style="white-space:pre">     </span>86.04787<span style="white-space:pre">                     </span>99.42865</div><div>8<span style="white-space:pre">     </span>101.1718<span style="white-space:pre">                     </span>114.5554</div><div>9<span style="white-space:pre">     </span>117.8272<span style="white-space:pre">                     </span>131.2154</div><div>10<span style="white-space:pre">    </span>136.1715<span style="white-space:pre">                     </span>149.5663</div><div>11<span style="white-space:pre">    </span>156.38<span style="white-space:pre">                       </span>169.7829</div><div>12<span style="white-space:pre">    </span>178.6464<span style="white-space:pre">                     </span>192.0589</div><div>13<span style="white-space:pre">    </span>203.1851<span style="white-space:pre">                     </span>216.6093</div><div>14<span style="white-space:pre">    </span>230.2344<span style="white-space:pre">                     </span>243.6732</div><div>15<span style="white-space:pre">    </span>260.0597<span style="white-space:pre">                     </span>273.5164</div><div>16<span style="white-space:pre">    </span>292.9561<span style="white-space:pre">                     </span>306.4336</div><div>17<span style="white-space:pre">    </span>329.2521<span style="white-space:pre">                     </span>342.7521</div><div>18<span style="white-space:pre">    </span>369.3103<span style="white-space:pre">                     </span>382.8342</div><div>19<span style="white-space:pre">    </span>413.5336<span style="white-space:pre">                     </span>427.0847</div><div>20<span style="white-space:pre">    </span>462.3755<span style="white-space:pre">                     </span>475.9562</div><div>21<span style="white-space:pre">    </span>516.344<span style="white-space:pre">                      </span>529.9549</div><div>22<span style="white-space:pre">    </span>576.0111<span style="white-space:pre">                     </span>589.6461</div><div>23<span style="white-space:pre">    </span>642.0167<span style="white-space:pre">                     </span>655.6616</div><div>24<span style="white-space:pre">    </span>715.0786<span style="white-space:pre">                     </span>728.7151</div><div>25<span style="white-space:pre">    </span>796.0046<span style="white-space:pre">                     </span>809.6158</div><div>26<span style="white-space:pre">    </span>885.7007<span style="white-space:pre">                     </span>899.2866</div><div>27<span style="white-space:pre">    </span>985.1931<span style="white-space:pre">                     </span>998.7753</div><div>28<span style="white-space:pre">    </span>1095.642<span style="white-space:pre">                     </span>1109.26</div><div>29<span style="white-space:pre">     </span>1218.379<span style="white-space:pre">                     </span>1232.083</div><div>30<span style="white-space:pre">    </span>1354.956<span style="white-space:pre">                     </span>1368.808</div><div>31<span style="white-space:pre">    </span>1507.179<span style="white-space:pre">                     </span>1521.247</div><div>32<span style="white-space:pre">    </span>1677.258<span style="white-space:pre">                     </span>1691.569</div><div>33<span style="white-space:pre">    </span>1867.794<span style="white-space:pre">                     </span>1882.306</div><div>34<span style="white-space:pre">    </span>2081.752<span style="white-space:pre">                     </span>2096.376</div><div>35<span style="white-space:pre">    </span>2322.533<span style="white-space:pre">                     </span>2337.195</div><div>36<span style="white-space:pre">    </span>2594.164<span style="white-space:pre">                     </span>2608.816</div><div>37<span style="white-space:pre">    </span>2901.554<span style="white-space:pre">                     </span>2916.091</div><div>38<span style="white-space:pre">    </span>3250.662<span style="white-space:pre">                     </span>3264.939</div><div>39<span style="white-space:pre">    </span>3648.824<span style="white-space:pre">                     </span>3662.816</div><div>40<span style="white-space:pre">    </span>4105.379<span style="white-space:pre">                     </span>4119.386</div><div>41<span style="white-space:pre">    </span>4632.63<span style="white-space:pre">                      </span>4647.065</div><div>42<span style="white-space:pre">    </span>5247.132<span style="white-space:pre">                     </span>5261.918</div><div>43<span style="white-space:pre">    </span>5971.715<span style="white-space:pre">                     </span>5986.403</div><div>44<span style="white-space:pre">    </span>6838.775<span style="white-space:pre">                     </span>6853.297</div><div>45<span style="white-space:pre">    </span>7897.29<span style="white-space:pre">                      </span>7911.953</div><div>46<span style="white-space:pre">    </span>9227.28<span style="white-space:pre">                      </span>9241.734</div><div>47<span style="white-space:pre">    </span>10959.62<span style="white-space:pre">                     </span>10972.7</div><div>48<span style="white-space:pre">     </span>13384.32<span style="white-space:pre">                     </span>13395.36</div><div>49<span style="white-space:pre">    </span>17682.94<span style="white-space:pre">                     </span>17688.51</div></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 6, 2021 at 11:38 PM Dennis Shea <<a href="mailto:shea@ucar.edu">shea@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>I would ask the WRF forum.</div><div><br></div><div>Good Luck<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 6, 2021 at 1:19 AM ali mughal <<a href="mailto:mughalali655@gmail.com" target="_blank">mughalali655@gmail.com</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">Is there someone knowledgeable about WRF data in this forum or should I forward this query to the WRF user forum ?<div>Thank you for your support <br><br>On Saturday, March 6, 2021, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Sorry , I do not know. You will have to ask someone knowledgeable about WRF data. <br><br><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Mar 5, 2021, at 8:40 AM, ali mughal <<a href="mailto:mughalali655@gmail.com" target="_blank">mughalali655@gmail.com</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">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" target="_blank">shea@ucar.edu</a>> wrote:<br><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>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>
_______________________________________________<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></blockquote></div>
</blockquote></div>
</div></blockquote></div></blockquote></div>
</blockquote></div>
</blockquote></div>