<div dir="ltr"><div>There is no 'explicit' vertical gradient function.</div><div><br></div><div>You could use vertical finite differencing</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/center_finite_diff_n.shtml"><b>https://www.ncl.ucar.edu/Document/Functions/Built-in/center_finite_diff_n.shtml</b></a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 14, 2022 at 5:59 AM Chathurika 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:1px solid rgb(204,204,204);padding-left:1ex"><br>
<p style="font-family:Arial">
        <span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)">Dear NCL user,</span> 
</p>
<p style="font-family:Arial">
        <br>
</p>
<p style="font-family:Arial">
        <span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)">Could you please tell me whether there is a function to</span><span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)"> calculate the </span><span style="font-family:Arial"><span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)">depth</span><span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)"> gradient </span><span style="color:rgb(0,0,0);font-family:Georgia;font-size:16px;white-space:normal;background-color:rgb(255,255,255)">of a variable</span><span style="font-family:Georgia;font-size:16px"></span><span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)"> in NCL?</span></span> 
</p>
<p style="font-family:Arial">
        <span style="font-family:Arial"><br>
</span> 
</p>
<p style="font-family:Arial">
        <span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)">e.g  dtemperature</span><span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)">/dz</span> 
</p>
<p style="font-family:Arial">
        <br>
</p>
<p style="font-family:Arial">
        <span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)">z is depth</span> 
</p>
<p style="font-family:Arial">
        <br>
</p>
<p style="font-family:Arial">
        <span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)">Thank you very very much and best regards,</span> 
</p>
<p style="font-family:Arial">
        <span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)">Chathu</span> 
</p>
<p style="font-family:Arial">
        <br>
</p>
<p style="font-family:Arial">
        <span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)">P.S I know how </span><span style="font-family:Georgia;font-size:16px;color:rgb(0,0,0)">to </span><span style="color:rgb(0,0,0);font-family:Georgia;font-size:16px;white-space:normal;background-color:rgb(255,255,255)">Compute the meridional and zonal gradients of a variable.</span> 
</p>
<p style="font-family:Arial">
        <br>
</p>_______________________________________________<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>