<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 5, 2010, at 11:09 AM, Jeffrey Duda wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Muhammad,<br>Unfortunately, you simply can't define a variable using cdiff in the z-direction in Grads.&nbsp;</blockquote><div>That's because GrADS constructs the defined object by looping over Z (and T and E if they are varying dims too). It's almost like a built-in zloop function -- you end up with a result that varies in Z, but the expression is evaluated at a fixed Z as it loops over all the specified Z levels.&nbsp;</div><div><br></div><br><blockquote type="cite"> You can display a variable, but you'd have to write out the entire formula for that variable in the display command.<br></blockquote>That's correct. You can also write it out to a file, using gxout fwrite.&nbsp;</div><div>--Jennifer</div><div><br></div><div><br><blockquote type="cite"> <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 "cdiff" function along z-dimension to fine dvar/dz e.g&nbsp;</div> <div><br></div><div>-&gt; 'set z 1 17'</div><div>-&gt; '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> _______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></body></html>