Adam,<br>From what you included, I don't know if 3 of the last 4 arguments in the PDEF line are correct or not. From exactly where are you getting the data? Also, how does it look wrong? <br><br>Jeff<br><br><div class="gmail_quote">
On Mon, Feb 14, 2011 at 3:47 PM, Adam Cinderich <span dir="ltr"><<a href="mailto:cinderic@msu.edu">cinderic@msu.edu</a>></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;">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size: 11pt;">Jeff,</span></p><p class="MsoNormal"><span style="font-size: 11pt;"> </span></p><p class="MsoNormal"><span style="font-size: 11pt;">Thank you. I did a ‘q file’ and it says 1 variable. The variable was correct, but looking over my .ctl file once more, I realized the problem was within the .ctl file and it now plots.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt;"> </span></p><p class="MsoNormal"><span style="font-size: 11pt;">However, I do have another question. I plotted tas for my domain (The Great Lakes Region) 41-49 and 267-285 and it does not look correct. I believe it has to do with my ‘pdef’ line in the .ctl file (I have been trying to come up with the correct pdef lines for the NARCCAP models and haven’t been successful yet). </span></p>
<p class="MsoNormal"><span style="font-size: 11pt;"> </span></p><p class="MsoNormal"><span style="font-size: 11pt;">I came up with the following pdef line: <b>pdef 123 104 NPS 78.5 166.5 263 50 50</b></span></p><p class="MsoNormal">
<span style="font-size: 11pt;">based on the ncdump information for the ECPC model and GrADS pdef syntax requirements:</span></p><p> xc = 123 ;</p><p> yc = 104 ;</p><p> time = UNLIMITED ; // (731 currently)</p>
<p> bnds = 2 ;</p><p>variables:</p><p> char polar_stereographic ;</p><p> polar_stereographic:grid_mapping_name = "polar_stereographic" ;</p><p> polar_stereographic:longitude_of_central_meridian = 263. ;</p>
<p> polar_stereographic:straight_vertical_longitude_from_pole = 263. ;</p><p> polar_stereographic:standard_parallel = 60. ;</p><p> polar_stereographic:TrueGridLength_Latitude = 60. ;</p>
<p> polar_stereographic:XGridLength_M = 50000. ;</p><p> polar_stereographic:YGridLength_M = 50000. ;</p><p> polar_stereographic:PoleOnPlane = "north" ;</p><p> polar_stereographic:false_easting = 3925000. ;</p>
<p> polar_stereographic:false_northing = 8325000. ;</p><p> polar_stereographic:latitude_of_projection_origin = 90. ;</p><p class="MsoNormal"><span style="font-size: 11pt;"> </span></p><p class="MsoNormal">
<span style="font-size: 11pt;">Are you, or is anyone else, able to offer a suggestion on what might be wrong (and how to correct) my pdef line?</span></p><p class="MsoNormal"><span style="font-size: 11pt;"> </span></p><p class="MsoNormal">
<span style="font-size: 11pt;">Thank you,</span></p><p class="MsoNormal"><span style="font-size: 11pt;">Adam</span></p><p class="MsoNormal"><span style="font-size: 11pt;"> </span></p><p class="MsoNormal"><span style="font-size: 11pt;"> </span></p>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;"><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] <b>On Behalf Of </b>Jeffrey Duda<br>
<b>Sent:</b> Monday, February 14, 2011 4:23 PM<br><b>To:</b> GrADS Users Forum<br><b>Subject:</b> Re: [gradsusr] 'tas' Plotting Error</span></p></div><div><div></div><div class="h5"><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom: 12pt;">
Adam,<br>Do "q file" to see if the variable tas shows up in the list of variables. It might also be a matter of capitalization. Grads is case sensitive in this way.<br><br>Jeff Duda</p><div><p class="MsoNormal">
On Mon, Feb 14, 2011 at 3:20 PM, Adam Cinderich <<a href="mailto:cinderic@msu.edu" target="_blank"><span style="color: windowtext;">cinderic@msu.edu</span></a>> wrote:</p><div><div><p class="MsoNormal">Hello:</p><p class="MsoNormal">
</p><p class="MsoNormal">I am trying to plot using open Grads. I have opened my .ctl file and it says that my data file was opened. However, when I attempt to plot ‘tas’ it says the following:</p><p class="MsoNormal"> </p>
<p class="MsoNormal">Syntax Error: Invalid Operand</p><p class="MsoNormal"> ‘tas’ not a variable or function name</p><p class="MsoNormal"> Error occurred at column 1</p><p class="MsoNormal">DISPLAY error: Invalid expression</p>
<p class="MsoNormal"> Expression = tas</p><p class="MsoNormal"> </p><p class="MsoNormal">‘tas’ is my temperature at surface variable and when I do an ncdump of the data file, it shows ‘tas’ as the variable. Can someone offer any suggestions as to why it won’t let me plot my variable and/or tell me if a command exists for Grads that will list variables that are available to be plotted?</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Thank you,</p><p class="MsoNormal">Adam</p></div></div><p class="MsoNormal" style="margin-bottom: 12pt;"><br>_______________________________________________<br>gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank"><span style="color: windowtext;">gradsusr@gradsusr.org</span></a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank"><span style="color: windowtext;">http://gradsusr.org/mailman/listinfo/gradsusr</span></a></p>
</div><p class="MsoNormal"><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/%7Ejdduda" target="_blank"><span style="color: windowtext;">www.meteor.iastate.edu/~jdduda</span></a></p>
</div></div></div></div><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>