Yeah. I can't define a product that involves the cdiff command in the z-dimension. However, for some odd reason, I can display a product using the cdiff command in the z-dimension. What I mean is, I can't have the following INSIDE a grads script:<br>
<br>'define dz = cdiff(hght,z)'<br><br>However, If I wanted to display something like vertical wind shear, I could do so by typing in the command window:<br><br>'display cdiff(u,z)/cdiff(hght,z)'<br><br>and it would display just fine. I'm not sure why this is. I'm running version 2.0.a5 though, so maybe it's a problem with the version.<br>
<br>Jeff<br><br><div class="gmail_quote">On Thu, Feb 11, 2010 at 1:44 PM, J-P Michael <span dir="ltr"><<a href="mailto:jm08j@fsu.edu">jm08j@fsu.edu</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;">
Jeff,<br>
This may be a foregone conclusion for most but there is some issue with cdiff in z, depending on the version of GrADS you are using. Are you able to cdiff in x and y and failing in the z?<br>
<br>
J-P Michael<br>
Florida State University<br>
<div class="im"><br>
----- Original Message -----<br>
From: Jeffrey Duda <<a href="mailto:jdduda@IASTATE.EDU">jdduda@IASTATE.EDU</a>><br>
</div><div class="im">Date: Tuesday, February 9, 2010 4:55 pm<br>
Subject: Writing out to a file and cdiff<br>
To: <a href="mailto:GRADSUSR@LIST.CINECA.IT">GRADSUSR@LIST.CINECA.IT</a><br>
<br>
</div><div class="im">> I have two questions.<br>
><br>
> 1) How do you write data out to a file in text format? I know<br>
> there is an<br>
> fwrite command, but I don't really know how it works.<br>
><br>
> 2) Can the cdiff command work when three environment dimensions are<br>
> varying? I'm trying to compute EPV, but to do so, I need to do a<br>
</div>> cdiffcommand in the x, y, and z dimensions, but I always get an<br>
<div><div></div><div class="h5">> error and usually<br>
> Grads crashes when I do it.<br>
><br>
> Jeff Duda<br>
><br>
> --<br>
> Jeff Duda<br>
> Iowa State University<br>
> Meteorology Graduate Student<br>
> 3134 Agronomy Hall<br>
> <a href="http://www.meteor.iastate.edu/%7Ejdduda" target="_blank">www.meteor.iastate.edu/~jdduda</a><br>
><br>
</div></div></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>