<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; "><div class="gmail_quote" style="font-size: 13px; ">Hello all,<br><br>I am experiencing an error when I attempt to open a NetCDF file with a control file. <br>
<div class="im">The netcdf file contains total precipitation data from CCSM4 downloaded from ESG.<br>I am using GrADS version 2.0.a9 on Unix.<br><br><b>The error I receive from GrADS when i attempt to plot the total precipitation variable (PRECT) is:</b><br>
<br></div><i>Error: Variable prect not in netcdf file </i><b>&lt;----This is what has me confused</b><div class="im" style="color: rgb(80, 0, 80); "><i>Data Request Error:  Error for variable &#39;prect&#39;</i><br><i> Error ocurred at column 1</i><br>
<i>DISPLAY error:  Invalid expression </i><br><i> Expression = prect</i></div></div><div class="gmail_quote" style="font-size: 13px; "><i><br></i></div><div class="gmail_quote">Any help in identifying why this error is occurring would be greatly appreciated. Below I will paste the control file I am using and below that, some of the output from ncdump -c proving that, despite what GrADS is telling me, my variable should exist in the file:)<div style="font-size: 13px; ">
<br></div><div style="font-size: 13px; "><b>First the control file (a shortened version):</b></div><div style="font-size: 13px; "><br></div><div><div class="im" style="font-size: 13px; color: rgb(80, 0, 80); "><div><i>DSET ^<a href="http://precip.nc/" target="_blank" style="color: rgb(17, 65, 112); ">precip.nc</a></i></div>
<div><i>DTYPE netcdf</i></div><div><i>TITLE Total Precipitation Rate</i></div><div><i>UNDEF -1.e+34</i></div><div><i>OPTIONS 365_day_calendar</i></div></div><div style="font-size: 13px; "><i>XDEF 288 levels 0 1.25 ...(I left out the rest to keep it short)</i></div>
<div style="font-size: 13px; "><i>YDEF 192 levels  -90 -89.0575916230366 ...(again left out the rest to keep it short)</i></div><div><div class="im" style="font-size: 13px; "><div style="color: rgb(80, 0, 80); "><i>ZDEF 1 levels 0</i></div>
<div style="color: rgb(80, 0, 80); "><i>TDEF 1872 linear JAN1850 1mo</i></div><div style="color: rgb(80, 0, 80); "><i>VARS 1</i></div><div style="color: rgb(80, 0, 80); "><i>PRECT 0 t,y,x  Precipitation (m/s)</i></div><div style="color: rgb(80, 0, 80); ">
<i>ENDVARS</i></div><div style="color: rgb(80, 0, 80); "><br></div><div><b>Below is some of the output of ncdump</b></div><div style="color: rgb(80, 0, 80); "><br></div><div style="color: rgb(80, 0, 80); "><i>netcdf precip {</i></div>
<div style="color: rgb(80, 0, 80); "><i>dimensions:</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">        </span>time = UNLIMITED ; // (1872 currently)</i></div><div style="color: rgb(80, 0, 80); ">
<i><span style="white-space: pre-wrap; ">        </span>lat = 192 ;</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">        </span>lon = 288 ;</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">        </span>chars = 8 ;</i></div>
<div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">        </span>ilev = 27 ;</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">        </span>lev = 26 ;</i></div><div style="color: rgb(80, 0, 80); ">
<i><span style="white-space: pre-wrap; ">        </span>isccp_prs = 7 ;</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">        </span>isccp_prstau = 49 ;</i></div><div style="color: rgb(80, 0, 80); ">
<i><span style="white-space: pre-wrap; ">        </span>isccp_tau = 7 ;</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">        </span>slat = 191 ;</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">        </span>slon = 288 ;</i></div>
<div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">        </span>tbnd = 2 ;</i></div><div style="color: rgb(80, 0, 80); "><i><br></i></div><div style="color: rgb(80, 0, 80); "><i>variables:</i></div><div style="color: rgb(80, 0, 80); ">
<i><span style="white-space: pre-wrap; ">        </span>double P0 ;</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">                </span>P0:long_name = &quot;reference pressure&quot; ;</i></div><div style="color: rgb(80, 0, 80); ">
<i><span style="white-space: pre-wrap; ">                </span>P0:units = &quot;Pa&quot; ;</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">        </span>float PRECT(time, lat, lon) ;</i></div><div style="color: rgb(80, 0, 80); ">
<i><span style="white-space: pre-wrap; ">                </span>PRECT:units = &quot;m/s&quot; ;</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">                </span>PRECT:long_name = &quot;Total (convective and large-scale) precipitation rate (liq + ice)&quot; ;</i></div>
<div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">                </span>PRECT:cell_method = &quot;time: mean&quot; ;</i></div><div style="color: rgb(80, 0, 80); "><i><br></i></div><div style="color: rgb(80, 0, 80); ">
<div><i>// global attributes:</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:Conventions = &quot;CF-1.0&quot; ;</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:source = &quot;CAM&quot; ;</i></div>
<div><i><span style="white-space: pre-wrap; ">                </span>:case = &quot;b40.20th.track1.1deg.008&quot; ;</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:title = &quot;UNSET&quot; ;</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:logname = &quot;mai&quot; ;</i></div>
<div><i><span style="white-space: pre-wrap; ">                </span>:host = &quot;be0801en.ucar.ed&quot; ;</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:Version = &quot;$Name$&quot; ;</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:revision_Id = &quot;$Id$&quot; ;</i></div>
</div><div style="color: rgb(80, 0, 80); "><br></div><div style="color: rgb(80, 0, 80); "><br></div></div></div>Thanks in advance.</div><div style="font-size: 13px; "><br></div></div></span><br clear="all"><br>-- <br>Adam J. Frumkin<br>
2035 E. Paul Dirac Dr. <br>200 RM Johnson Bldg.<br>Cubicle B-3 COAPS<br>Tallahassee, FL 32306-2840<br>Cell Phone (603) 247 - 3914<br>