Muhammad,<br>Unfortunately, you simply can't define a variable using cdiff in the z-direction in Grads. You can display a variable, but you'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"><<a href="mailto:afzaalkarori@gmail.com">afzaalkarori@gmail.com</a>></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 "cdiff" function along z-dimension to fine dvar/dz e.g </div>
<div><br></div><div>-> 'set z 1 17'</div><div>-> 'define dvar = cdiff(var,z)<br clear="all"><br></div><div>but I have following error</div><div><span style="font-family: 'Times New Roman'; 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>