<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Jeff and others,<br>
<br>
Strange. This is exactly what was suggested in the ctl file near the comments at the bottom (that which I pulled from nomads). The only difference is that they have also the inclusion of a 98cbar.gs script right after the other expressions like that in this
 link you gave me, whose utility is a mystery since it is not necessary, at least suggested as so by the cdiff documenation given that it is not included. Perhaps it is just some coloring scheme. At any rate, the script fails at the first line (which attempts
 to define dtx), with each line coded exactly as it is shown (with the appropriate NARR temp as TMPprs and wind as UGRDprs and VGRDprs of course). I assume it will do so again at dty, and so forth. I originally didn't include define with these since I thought
 they weren't necessary but adding that in didn't solve the problem anyways. I suspect it is because cdiff calls x, and since I define my domain with lat long, it doesn't have a x variable to use? There definitely isn't a spacing issue this time...<br>
<br>
Mason <br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF26987"><font color="#000000" size="2" face="Tahoma"><b>From:</b> gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Jeff Duda [jeffduda319@gmail.com]<br>
<b>Sent:</b> Thursday, November 10, 2011 11:11 AM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Diagnostics in Ctl File?<br>
</font><br>
</div>
<div></div>
<div>Mason,<br>
There is a good example of how to code temperature advection in the page for the cdiff command:
<a href="http://www.iges.org/grads/gadoc/gradfunccdiff.html" target="_blank">http://www.iges.org/grads/gadoc/gradfunccdiff.html</a><br>
The reason for all of the crazy manipulations is because the data points on your grid are not uniformly spaced on the globe.&nbsp; Thus corrections have to be made to get the correct distance between individual grid points.<br>
<br>
Jeff<br>
<br>
<div class="gmail_quote">On Thu, Nov 10, 2011 at 11:00 AM, Wesley Ebisuzaki <span dir="ltr">
&lt;<a href="mailto:Wesley.Ebisuzaki@noaa.gov" target="_blank">Wesley.Ebisuzaki@noaa.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Mason,<br>
<br>
I think that you've discovered the &quot;private&quot; commands used by nomads<br>
plot software for defining new variables<br>
and custom plots. &nbsp; The nomads plot package is a wrapper for GrADS. &nbsp;It<br>
has the ability to run grads .gs files that<br>
are embedded within the ctl files.<br>
<br>
<br>
<a href="http://www.cpc.ncep.noaa.gov/products/wesley/ncep_data/plot_doc.htmlhttp://www.cpc.ncep.noaa.gov/products/wesley/ncep_data/plot_doc.html" target="_blank">http://www.cpc.ncep.noaa.gov/products/wesley/ncep_data/plot_doc.htmlhttp://www.cpc.ncep.noaa.gov/products/wesley/ncep_data/plot_doc.html</a><br>
<br>
Ask NCDC for a copy of the .gs files.<br>
<div class="im"><br>
&gt; Has anyone done this before with grads?<br>
</div>
How do you expect the developers to debug the scripts?<br>
<font color="#888888"><br>
&nbsp; &nbsp; Wesley<br>
</font>
<div>
<div></div>
<div class="h5"><br>
<br>
<br>
Rowell, Mason D. wrote:<br>
&gt; All,<br>
&gt;<br>
&gt; I noticed ample comments toward the end of the ctl files available on the nomads servers from the NARR page, with a description of how to implement these in grads scripting. I tried to take this to plot temperature advection but it didn't work, b/c the last
 line of the comments calls for some function never provided. Has anyone done this before with grads?<br>
&gt;<br>
&gt; Mason<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
&gt;<br>
<br>
_______________________________________________<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>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Jeff Duda<br>
Grad student - PhD, Meteorology<br>
University of Oklahoma School of Meteorology - Center for Analysis and Prediction of Storms<br>
<br>
</div>
</div>
</div>
</body>
</html>