Muhammad,<br>Unfortunately, you simply can&#39;t define a variable using cdiff in the z-direction in Grads.  You can display a variable, but you&#39;d have to write out the entire formula for that variable in the display command.<br>
<br>Jeff Duda<br><br><div class="gmail_quote">On Wed, May 5, 2010 at 5:59 AM, Muhammad Afzaal <span dir="ltr">&lt;<a href="mailto:afzaalkarori@gmail.com">afzaalkarori@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">Hello everybody<div><br></div><div>I am using &quot;cdiff&quot; function along z-dimension to fine dvar/dz e.g </div>
<div><br></div><div>-&gt; &#39;set z 1 17&#39;</div><div>-&gt; &#39;define dvar = cdiff(var,z)<br clear="all"><br></div><div>but I have following error</div><div><span style="font-family: &#39;Times New Roman&#39;; font-size: medium;"><pre style="white-space: pre-wrap;">
Error from CDIFF:  Specified dimension non varying
Operation Error:  Error from cdiff function
  Error ocurred at column 1</pre><pre style="white-space: pre-wrap;"><font face="arial"><span style="white-space: normal; font-size: small;">can anybody figure out the problem?</span></font></pre>
<pre style="white-space: pre-wrap;"><font face="arial"><span style="white-space: normal; font-size: small;">Thanks</span></font></pre></span></div></span><br><font color="#888888">-- <br>MUHAMMAD AFZAAL KARORI<br><br>
</font><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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>