<div dir="ltr"><div dir="ltr">Download the 6.6.2 source code distribution from the NCL website. Within, that function is in ni/src/lib/nfpfort/dpres_plevel_dp.f. It is called by a C wrapper function which can be found in ni/src/lib/nfp/preshybW.c.</div><div dir="ltr"><br></div><div>You can also browse the NCL source code on the NCL github site.</div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 26, 2022 at 12:16 PM Joseph Clark via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi NCL users,<br><br>Does anyone know where I can find the source code for the function dpres_plevel? I'm confused about the exact formula used to determine pressure weights, particularly near the surface and TOA. There clearly is a constraint that the sum of dp's adds to the surface pressure, but I'm not sure exactly what's going on in the function.<br><br>Joseph\</div>
</blockquote></div></div></div>