<div dir="ltr">Thanks Jennifer, It works fine !<div>thanks to Jayakrishnan for your suggestion.</div><div>S.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-04 12:20 GMT+00:00 Jennifer Adams <span dir="ltr"><<a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">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><div class="h5"><div>On Sep 3, 2015, at 1:09 PM, samo diatta <<a href="mailto:samo.diatta@univ-zig.sn" target="_blank">samo.diatta@univ-zig.sn</a>> wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">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 <a href="http://ERAI.EP.1979-2013.nc" target="_blank">ERAI.EP.1979-2013.nc</a> 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: <a href="http://ERAI.EP.1979-2013.nc" target="_blank">ERAI.EP.1979-2013.nc</a><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 <a href="http://ERAI.EP.1979-2013.nc" target="_blank">ERAI.EP.1979-2013.nc</a><br>netcdf ERAI.EP.1979-2013 {<br>dimensions:<br><span style="white-space:pre-wrap">        </span>time = 420 ;<br><span style="white-space:pre-wrap">        </span>lat = 256 ;<br><span style="white-space:pre-wrap">        </span>lon = 512 ;<br>variables:<br><span style="white-space:pre-wrap">        </span>float EP(time, lat, lon) ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>EP:units = "kg/m2/s" ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>EP:long_name = "Budget Evaporation minus Precipitation" ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>EP:_FillValue = 1.e+20f ;<br><span style="white-space:pre-wrap">        </span>double time(time) ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>time:calendar = "standard" ;<br><span style="white-space:pre-wrap">        </span>float lat(lat) ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lat:La1 = 89.463f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lat:Lo1 = 0.f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lat:La2 = -89.463f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lat:Lo2 = 359.297f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lat:Di = 0.7031252f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lat:N = 128.f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lat:units = "degrees_north" ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lat:GridType = "Gaussian Latitude/Longitude Grid (Quasi-Regular)" ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lat:long_name = "latitude" ;<br><span style="white-space:pre-wrap">        </span>float lon(lon) ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lon:La1 = 89.463f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lon:Lo1 = 0.f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lon:La2 = -89.463f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lon:Lo2 = 359.297f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lon:Di = 0.7031252f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lon:N = 128.f ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lon:units = "degrees_east" ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lon:GridType = "Gaussian Latitude/Longitude Grid (Quasi-Regular)" ;<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>lon:long_name = "longitude" ;<br>}<br>............. and<br>CDO showdate <a href="http://ERAI.EP.1979-2013.nc" target="_blank">ERAI.EP.1979-2013.nc</a><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></div></div><span><file_ERAI.ctl></span>_______________________________________________<span class=""><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></span></blockquote></div><br><div>
<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;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;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></div><br></span></span><br>
</div>
<br></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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>