<div dir="ltr">I made the changes that were recommended with the following results. My X11 window does pop up when I run grads but it stays black. This is what happens when I try to display a variable:<div><br></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">ga-> q file</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">File 1 : 6 Months Sample Model Output</p><p style="margin:0px;font-size:11px;font-family:Menlo"> Descriptor: cont.ctl</p><p style="margin:0px;font-size:11px;font-family:Menlo">
Binary: atmos_month.nc.0000</p><p style="margin:0px;font-size:11px;font-family:Menlo"> Type = Gridded</p><p style="margin:0px;font-size:11px;font-family:Menlo"> Xsize = 96 Ysize = 80 Zsize = 18 Tsize = 804 Esize = 1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Number of Variables = 7</p><p style="margin:0px;font-size:11px;font-family:Menlo"> u 18 t,z,y,x u</p><p style="margin:0px;font-size:11px;font-family:Menlo"> v 18 t,z,y,x v</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> w 18 t,z,y,x v</p><p style="margin:0px;font-size:11px;font-family:Menlo"> t 18 t,z,y,x v</p><p style="margin:0px;font-size:11px;font-family:Menlo"> sh 18 t,z,y,x v</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> rh 18 t,z,y,x v</p><p style="margin:0px;font-size:11px;font-family:Menlo"> z 18 t,z,y,x v</p><p style="margin:0px;font-size:11px;font-family:Menlo">ga-> d u</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Error: Variable u not in netcdf file</p><p style="margin:0px;font-size:11px;font-family:Menlo">Data Request Error: Error for variable 'u'</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 = u</p><p style="margin:0px;font-size:11px;font-family:Menlo">
ga-> d z</p><p style="margin:0px;font-size:11px;font-family:Menlo">Error: Variable z not in netcdf file</p><p style="margin:0px;font-size:11px;font-family:Menlo">Data Request Error: Error for variable 'z'</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 = z</p></div><div><br></div>
<div>It still does not recognize that that variable is in the netcdf file for some reason.</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 Thu, Jun 19, 2014 at 10:22 AM, 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">Try this CTL file:
<div><br>
</div>
<div>The only difference is how you defined the variables' arguments.</div>
<div><br>
<div><br>
</div>
<div><font face="Courier New,Courier,monospace"><span style="font-size:14px">DSET ^atmos_month.nc.0000</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">UNDEF 1.e-10</span></font></div>
<div><font face="Courier New, Courier, monospace"><span style="font-size:14px">DTYPE netcdf<br>
</span></font><div class=""><font face="Courier New,Courier,monospace"><span style="font-size:14px">TITLE 6 Months Sample Model Output</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">*</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">XDEF 96 LINEAR 0.0 3.75</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">*</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">YDEF 80 GAUSR30 1</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">*</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">ZDEF 18 LEVELS 1000 950 900 850 800 750 700 650 600 550 500 450 400 350 300</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">250 200 150 </span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">*</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">TDEF 804 LINEAR JAN0 1MO</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">*</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">VARS 7</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
</div><font face="Courier New,Courier,monospace"><span style="font-size:14px">u 18 t,z,y,x u</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">v 18 t,z,y,x v</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">w 18 t,z,y,x v</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">t 18 t,z,y,x v</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">sh 18 t,z,y,x v</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">rh 18 t,z,y,x v</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">z 18 t,z,y,x v</span></font><br style="font-family:'Segoe UI',Helvetica,Arial,sans-serif;font-size:medium">
<font face="Courier New,Courier,monospace"><span style="font-size:14px">ENDVARS</span></font></div>
<div><font face="Courier New, Courier, monospace"><span style="font-size:14px"><br>
</span></font></div>
<div><font face="Courier New, Courier, monospace"><span style="font-size:14px">Good luck!</span></font></div>
<div><div class=""><font face="Courier New, Courier, monospace"><span style="font-size:14px"><br>
</span></font>
<div>
<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><div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000"><div class=""><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>
</div><b>Sent:</b> Thursday, June 19, 2014 12:07 AM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Displaying a .nc file<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr">It did prompt a list of variables including u, v, w, and z. It still doesn't want to display them.
<div><br>
</div>
<div>
<p style="margin:0px;font-size:11px;font-family:Menlo">ga-> q file</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">File 1 : 6 Months Sample Model Output</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Descriptor: cont.ctl</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Binary: atmos_month.nc.0000</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Type = Gridded</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Xsize = 96 Ysize = 80 Zsize = 18 Tsize = 804 Esize = 1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> Number of Variables = 7</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> u 18 0 u</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> v 18 0 v</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> w 18 0 v</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> t 18 0 v</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> sh 18 0 v</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> rh 18 0 v</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> z 18 0 v</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">ga-> d v</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>
<p style="margin:0px;font-size:11px;font-family:Menlo">ga-> d sh</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Error: Variable sh not in netcdf file</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Data Request Error: Error for variable 'sh'</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 = sh</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:58 PM, James T. Potemra <span dir="ltr">
<<a href="mailto:jimp@hawaii.edu" target="_blank">jimp@hawaii.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF">If you enter "q file" at the GrADS prompt it should list the variables.
<div>
<div><br>
<br>
<div>On 6/18/14 5:52 PM, David Stanfel wrote:<br>
</div>
<blockquote type="cite">
<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>
<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>DSET ^atmos_month.nc.0000</span><br>
<span>UNDEF 1.e-10</span><br>
<span>TITLE 6 Months Sample Model Output</span><br>
<span>*</span><br>
<span>XDEF 96 LINEAR 0.0 3.75</span><br>
<span>*</span><br>
<span>YDEF 80 GAUSR30 1</span><br>
<span>*</span><br>
<span>ZDEF 18 LEVELS 1000 950 900 850 800 750 700 650 600 550 500 450 400 350 300</span><br>
<span>250 200 150 </span><br>
<span>*</span><br>
<span>TDEF 804 LINEAR JAN0 1MO</span><br>
<span>*</span><br>
<span>VARS 7</span><br>
<span>u 18 0 u</span><br>
<span>v 18 0 v</span><br>
<span>w 18 0 v</span><br>
<span>t 18 0 v</span><br>
<span>sh 18 0 v</span><br>
<span>rh 18 0 v</span><br>
<span>z 18 0 v</span><br>
<span>ENDVARS</span><br>
</div>
<div><span><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;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" 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>
<br>
</div>
<br>
<fieldset></fieldset> <br>
<pre>_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<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>
<br>
</blockquote>
</div>
<br>
</div>
</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>