<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><----This is what has me confused</b><div class="im" style="color: rgb(80, 0, 80); "><i>Data Request Error: Error for variable 'prect'</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 = "reference pressure" ;</i></div><div style="color: rgb(80, 0, 80); ">
<i><span style="white-space: pre-wrap; ">                </span>P0:units = "Pa" ;</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 = "m/s" ;</i></div><div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">                </span>PRECT:long_name = "Total (convective and large-scale) precipitation rate (liq + ice)" ;</i></div>
<div style="color: rgb(80, 0, 80); "><i><span style="white-space: pre-wrap; ">                </span>PRECT:cell_method = "time: mean" ;</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 = "CF-1.0" ;</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:source = "CAM" ;</i></div>
<div><i><span style="white-space: pre-wrap; ">                </span>:case = "b40.20th.track1.1deg.008" ;</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:title = "UNSET" ;</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:logname = "mai" ;</i></div>
<div><i><span style="white-space: pre-wrap; ">                </span>:host = "be0801en.ucar.ed" ;</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:Version = "$Name$" ;</i></div><div><i><span style="white-space: pre-wrap; ">                </span>:revision_Id = "$Id$" ;</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>