Mason,<br>You can use the cdiff command in the z direction to display variables (unfortunately, you can&#39;t use it to define variables).� However, you can approximate the vertical derivative by copying the method that cdiff uses.� If you have geopotential height, then you have all you need to compute a vertical derivative with respect to height coordinates.� You can display the vertical derivative of theta by either of the following:<br>
<br>&#39;d cdiff(theta,z)&#39;<br>&#39;d (theta(z+1)-theta(z-1)) / (hgtprs(z+1)-hgtprs(z-1))<br><br>If you want to just view the gradient on one pressure surface, set the level that surface, then enter the command.<br><br>
Jeff<br><br><div class="gmail_quote">On Tue, Nov 22, 2011 at 7:54 PM, Rowell, Mason D. <span dir="ltr">&lt;<a href="mailto:Mason.D.Rowell-1@ou.edu">Mason.D.Rowell-1@ou.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
All,<br>
<br>
Is it possible to display the vertical derivative of some quantity (like say temp or potential temp) on a pressure surface? I know I have height in my NARR data, but it is specific to a pressure level (i.e. HGTprs). What I would need is the height just above the current pressure level and below it in order to get cdiff of say theta and z. I&#39;m not sure how to set the dimensions to do this...I would be okay with just getting this quantity for display at some level height, it doesn&#39;t have to be on a pressure surface.<br>

<br>
Mason<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Grad student - PhD, Meteorology<br>University of Oklahoma School of Meteorology - Center for Analysis and Prediction of Storms<br><br>