<div dir="ltr">How do I know what variable name will work? I've tried u, v, w, and z and still only get:<div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">ga-> d v</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Error: Variable v not in netcdf file</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Data Request Error: Error for variable 'v'</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Error ocurred at column 1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">DISPLAY error: Invalid expression </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Expression = v</p></div><div><br></div><div>Thanks,</div><div><br></div><div>David</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 11:13 PM, Hosmay Lopez <span dir="ltr"><<a href="mailto:hlopez@rsmas.miami.edu" target="_blank">hlopez@rsmas.miami.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">David,<br>
<br>
You should let GrADS know that the file is a netCDF. You do that by adding the following text line in your control file:<br>
<br>
DTYPE netcdf<br>
<br>
Insert such after the UNDEF line.<br>
<br>
Good luck!<br>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">Hosmay Lopez<br>
<span style="font-family:verdana,arial,sans-serif;background-color:rgb(255,255,255)">UM/CIMAS/RSMAS NOAA/AOML/PHOD</span><br style="font-family:verdana,arial,sans-serif;background-color:rgb(255,255,255)">
<span style="font-family:verdana,arial,sans-serif;background-color:rgb(255,255,255)">4301 Rickenbacker Causeway,</span><br style="font-family:verdana,arial,sans-serif;background-color:rgb(255,255,255)">
<span style="font-family:verdana,arial,sans-serif;background-color:rgb(255,255,255)">Miami, FL 33149, USA</span><br style="font-family:verdana,arial,sans-serif;background-color:rgb(255,255,255)">
<span style="font-family:verdana,arial,sans-serif;background-color:rgb(255,255,255)">Phone: <a href="tel:%28305%29%20361-4329" value="+13053614329" target="_blank">(305) 361-4329</a></span><br>
<br>
</div>
</div>
</div>
</div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] on behalf of David Stanfel [<a href="mailto:dstanfel@ualberta.ca" target="_blank">dstanfel@ualberta.ca</a>]<br>
<b>Sent:</b> Wednesday, June 18, 2014 10:58 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> [gradsusr] Displaying a .nc file<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr">So I figured out how to use a descriptor file but I am still having troubles opening the file. My descriptor file is as follows:
<div><br>
</div>
<div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">DSET ^atmos_month.nc.0000</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">UNDEF 1.e-10</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">TITLE 6 Months Sample Model Output</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">*</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">XDEF 96 LINEAR 0.0 3.75</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">*</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">YDEF 80 GAUSR30 1</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">*</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">ZDEF 18 LEVELS 1000 950 900 850 800 750 700 650 600 550 500 450 400 350 300</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">250 200 150 </span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">*</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">TDEF 804 LINEAR JAN0 1MO</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">*</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">VARS 7</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">u 18 0 u</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">v 18 0 v</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">w 18 0 v</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">t 18 0 v</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">sh 18 0 v</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">rh 18 0 v</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">z 18 0 v</span><br style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">
<span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">ENDVARS</span><br>
</div>
<div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px"><br>
</span></div>
<div><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">It was able to open it without issue:</font></span></div>
<div><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br>
</font></span></div>
<div>
<p style="margin:0px;font-size:11px;font-family:Menlo">ga-> open cont.ctl </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Scanning description file: cont.ctl</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Data file atmos_month.nc.0000 is open as file 1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">LON set to 0 360 </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">LAT set to -88.29 88.29 </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">LEV set to 1000 1000 </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Time values set: 0:1:1:0 0:1:1:0 </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">E set to 1 1 </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin:0px"><font face="arial, helvetica, sans-serif">However, I am having trouble displaying the data. I tried to use the display command (d) with this result:</font></p>
<p style="margin:0px"><font face="arial, helvetica, sans-serif"><br>
</font></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">ga-> d atmos_month.nc.0000</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Syntax error: Bad file number for variable atmos_month </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Error ocurred at column 1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">DISPLAY error: Invalid expression </p>
<p style="margin:0px"></p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Expression = atmos_month.nc.0000</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin:0px"><font face="arial, helvetica, sans-serif">Is my syntax off?</font></p>
<p style="margin:0px"><font face="arial, helvetica, sans-serif"><br>
</font></p>
<p style="margin:0px"><font face="arial, helvetica, sans-serif">Thanks,</font></p>
<p style="margin:0px"><font face="arial, helvetica, sans-serif"><br>
</font></p>
<p style="margin:0px"><font face="arial, helvetica, sans-serif">David</font></p>
</div>
</div>
</div>
</div></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></div>