<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">GrADS doesn’t like upper case letters in the variable names, so you need to create an alias. In your descriptor file, change “EP” to “EP=>ep” and it should work just fine. The time metadata in the file may be strange (because CDO is gagging on it), but you are providing everything GrADS needs with your descriptor’s TDEF entry, so GrADS isn't looking at any time metadata in the file. <div>—Jennifer<br><div><br><div><br><div><div>On Sep 3, 2015, at 1:09 PM, samo diatta <<a href="mailto:samo.diatta@univ-zig.sn">samo.diatta@univ-zig.sn</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi everybody,<br>I have a problem with interpreting my CTL file; I have a netcdf file<br>with curious time format (or timestamp, see below when I use CDO) with<br>ncdump I can view the time dimension; so I decide to use a ctl file to<br>set the timestamp and open it with grads, unfortunately an error I<br>can't understand occur when I open the ctl file (see below). Someone<br>has an idea, how to solve the problem. Find attached the ctl file<br><br>ga-> open file_ERAI.ctl<br>Scanning description file: file_ERAI.ctl<br>Data file ERAI.EP.1979-2013.nc is open as file 1<br>LON set to 0 360<br>LAT set to -89.463 89.8339<br>LEV set to 1000 1000<br>Time values set: 1979:1:1:0 1979:1:1:0<br>E set to 1 1<br>ga-> q file<br>File 1 :<br> Descriptor: file_ERAI.ctl<br> Binary: ERAI.EP.1979-2013.nc<br> Type = Gridded<br> Xsize = 512 Ysize = 256 Zsize = 1 Tsize = 420 Esize = 1<br> Number of Variables = 3<br> lon 0 y,x longitude<br> lat 0 y,x latitude<br> ep 0 t,y,x Budget Evaporation minus Precipitation<br>ga-> d ep<br>Error: Variable ep not in netcdf file<br>Data Request Error: Error for variable 'ep'<br> Error ocurred at column 1<br>DISPLAY error: Invalid expression<br> Expression = ep<br>.................. ncdump gives :<br>ncdump -h ERAI.EP.1979-2013.nc<br>netcdf ERAI.EP.1979-2013 {<br>dimensions:<br><span class="Apple-tab-span" style="white-space:pre">        </span>time = 420 ;<br><span class="Apple-tab-span" style="white-space:pre">        </span>lat = 256 ;<br><span class="Apple-tab-span" style="white-space:pre">        </span>lon = 512 ;<br>variables:<br><span class="Apple-tab-span" style="white-space:pre">        </span>float EP(time, lat, lon) ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>EP:units = "kg/m2/s" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>EP:long_name = "Budget Evaporation minus Precipitation" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>EP:_FillValue = 1.e+20f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span>double time(time) ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>time:calendar = "standard" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span>float lat(lat) ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lat:La1 = 89.463f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lat:Lo1 = 0.f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lat:La2 = -89.463f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lat:Lo2 = 359.297f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lat:Di = 0.7031252f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lat:N = 128.f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lat:units = "degrees_north" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lat:GridType = "Gaussian Latitude/Longitude Grid (Quasi-Regular)" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lat:long_name = "latitude" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span>float lon(lon) ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lon:La1 = 89.463f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lon:Lo1 = 0.f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lon:La2 = -89.463f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lon:Lo2 = 359.297f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lon:Di = 0.7031252f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lon:N = 128.f ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lon:units = "degrees_east" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lon:GridType = "Gaussian Latitude/Longitude Grid (Quasi-Regular)" ;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>lon:long_name = "longitude" ;<br>}<br>............. and<br>CDO showdate ERAI.EP.1979-2013.nc<br>arning (splitTimevalue) : Reset wrong date/time to 0019-01-01 00:00:00!<br> 0019-01-01 0019-01-02 0019-01-03 0019-01-04 0019-01-05<br>0019-01-06 0019-01-07 0019-01-08 0019-01-09 0019-01-10 0019-01-11<br> 0019-01-12 0019-01-01 0019-01-02 0019-01-03 0019-01-04<br>0019-01-05 0019-01-06 0019-01-07 0019-01-08 0019-01-09 0019-01-10<br> .......................................................<br><span><file_ERAI.ctl></span>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030 <br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span><br class="Apple-interchange-newline">
</div>
<br></div></div></div></body></html>