<div dir="ltr">Hi Shreeta,<div><br></div><div>The "height" product from wrf_user_getvar and the half model levels are the same, since the wrf_user_getvar routines always calculate the values on the mass grid. Unfortunately, the description for 'height' says 'full model levels' but this is a bit of a misnomer, since it's actually the model levels for the mass grid. If you want the full model height, just do:</div><div><br></div><div>(ph + phb) / 9.81</div><div><br></div><div><br></div><div>The example for wrf_interp_1d must have been written before wrf_user_getvar was implemented. You should just use the 'height' product from wrf_user_getvar when you want the height for half levels.</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Bill</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 31, 2017 at 11:18 PM, Shreta Ghimire <span dir="ltr"><<a href="mailto:shreta.g@gmail.com" target="_blank">shreta.g@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">Dear NCL users,<div><br></div><div><br></div><div>I was trying to calculate full and half model height using WRF output. For half-model height i used the formula:</div><div><br></div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)">z = 0.5*(tmp(0:dimv(0)-2,:,:)+tmp(<wbr>1:dimv(0)-1,:,:) ; On half (mass) levels
z@description = "height"
z@units = "m" </pre><div><br></div>that was given in an example of wrf_interp_1d (<a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_interp_1d.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Functions/Built-in/<wbr>wrf_interp_1d.shtml</a>).<br><br><br></div><div>To calculate full-model height I used "height" in wrf_user_getvar (<a href="https://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_user_getvar.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Functions/WRF_arw/<wbr>wrf_user_getvar.shtml</a>).<br><br><br></div><div>The values obtained from both of these are same. Now I am a bit confused on what do I need to use to compute the full model height and were they suppose to give the same values?</div><div><br></div><div><br></div><div>Thank you in advance. Any help will be appreciated. </div><div><br></div><div><br><br></div><div><div><div class="m_-3112617450937302583gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Regards,<br>Shreta <br><br></div></div></div></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>