<div dir="ltr">Just to be clear: Following the nomenclature in the wgt_vert_avg_beta documentation:<div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/wgt_vert_avg_beta.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/wgt_vert_avg_beta.shtml</a><br></div><div>If you set punits = 0, then the p and psfc arrays must be in units of hPa. If you set punits = 1, then the p and psfc arrays must be in units of Pa.  </div><div><br></div><div>Is your punits setting consistent with the units of your passed arrays p and psfc?</div><div><br></div><div>As always with ncl-talk, please respond to the email list and not to me individually so others can see the response.</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 8, 2019 at 5:53 AM Drbz Kg via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@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><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><div dir="ltr">Dear all,</div><div dir="ltr"><br></div><div dir="ltr">I have a problem regarding using the "wgt_vert_avg_beta" function in NCL. I am trying to calculate weight vertical integral of meridional moist static energy.</div><div dir="ltr">The problem I am facing is that I get different results for choosing the units of pressure levels and surface pressure.</div><div dir="ltr">In other words, calculations with "hPa" units are different from "Pa" when I convert the pressure levels and surface pressures.</div><div dir="ltr">Why is that?!  It is not just the value that matters but the shape of the line (XY plot) I got is different, and it is really important for me because I am looking for the latitude where this parameter becomes zero.</div><div dir="ltr">Can anyone help me, please?  which one is correct?</div><div dir="ltr"><br></div><div dir="ltr">Best</div></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>