<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;">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: (305) 361-4329</span><br>
<br>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF511371"><font color="#000000" face="Tahoma" size="2"><b>From:</b> gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of David Stanfel [dstanfel@ualberta.ca]<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 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>
</body>
</html>