Thanks Jeff, you are right, it works with the display command.<br><br>Mireia<br><br><div class="gmail_quote">2012/1/28 Jeff Duda <span dir="ltr"><<a href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In my experience with this, you simply cannot define a field using cdiff in the vertical. You can display something, just not define it. What I mean is you will get an issue if you run these commands:<br>
'define dtheta = cdiff(theta,z)'<br>
'd dtheta'<br>but Grads won't have a problem with the following:<br>'d cdiff(theta,z)'<br><br>Jeff Duda<br><br><div class="gmail_quote"><div><div class="h5">On Fri, Jan 27, 2012 at 6:39 PM, Mireieta <span dir="ltr"><<a href="mailto:mireieta@gmail.com" target="_blank">mireieta@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi, I am trying to use cdiff with z dim:<br><br>'set z 1 45'<br>'dtheta=cdiff(theta,z)'<br>
<br>and got the next error:<br>
<br>"Error from CDIFF: Specified dimension non varying<br>Operation Error: Error from cdiff function<br>
Error ocurred at column 1<br>DEFINE error: Invalid expression." <br><br>I don't undertand, z dim is varying...<br><br>Thanks!<span><font color="#888888"><br>-- <br>Mireia<br>
</font></span><br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
<br>
</font></span><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>Mireia<br>