<div dir="ltr">Hi, <div><br></div><div>I enjoy using the dpres_plevel_Wrap function to calculate weighted-averages, but the function changed from 6.3.0 to 6.4.0. <div><br></div><div>Here is a simple script :</div><div><br></div><div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;</div><div>plev = (/200., 800 /)</div><div>pbot = 800.</div><div>ptop = 250.</div><div>dp = dpres_plevel_Wrap(plev, pbot, ptop, 0)</div><div>print(&quot;plev=&quot;+plev+&quot; dp=&quot;+dp)</div></div><div><br></div><div><br></div><div>In 6.3.0, the result is</div></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>plev=200 dp=250</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">(1)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>plev=800 dp=300</span></p></div><div><span style="font-variant-ligatures:no-common-ligatures">In 6.4.0 the result is</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>plev=200 dp=9.96921e+36</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">(1)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>plev=800 dp=9.96921e+36</span></p><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">I think the 6.3.0 way is correct. </span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">Dave</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div></span></div></div>