[gradsusr] error when opening a ctl file

samo diatta samo.diatta at univ-zig.sn
Thu Sep 3 13:09:22 EDT 2015


Hi everybody,
I have a problem with interpreting my CTL file; I have a netcdf file
with curious time format (or timestamp, see below when I use CDO) with
ncdump I can view the time dimension; so I decide to use a ctl file to
set the timestamp and open it with grads, unfortunately an error I
can't understand occur when I open the ctl file (see below). Someone
has an idea, how to solve the problem. Find attached the ctl file

ga-> open file_ERAI.ctl
Scanning description file:  file_ERAI.ctl
Data file ERAI.EP.1979-2013.nc is open as file 1
LON set to 0 360
LAT set to -89.463 89.8339
LEV set to 1000 1000
Time values set: 1979:1:1:0 1979:1:1:0
E set to 1 1
ga-> q file
File 1 :
  Descriptor: file_ERAI.ctl
  Binary: ERAI.EP.1979-2013.nc
  Type = Gridded
  Xsize = 512  Ysize = 256  Zsize = 1  Tsize = 420  Esize = 1
  Number of Variables = 3
     lon  0  y,x  longitude
     lat  0  y,x  latitude
     ep  0  t,y,x  Budget Evaporation minus Precipitation
ga-> d ep
Error: Variable ep not in netcdf file
Data Request Error:  Error for variable 'ep'
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = ep
.................. ncdump gives :
ncdump -h ERAI.EP.1979-2013.nc
netcdf ERAI.EP.1979-2013 {
dimensions:
	time = 420 ;
	lat = 256 ;
	lon = 512 ;
variables:
	float EP(time, lat, lon) ;
		EP:units = "kg/m2/s" ;
		EP:long_name = "Budget Evaporation minus Precipitation" ;
		EP:_FillValue = 1.e+20f ;
	double time(time) ;
		time:calendar = "standard" ;
	float lat(lat) ;
		lat:La1 = 89.463f ;
		lat:Lo1 = 0.f ;
		lat:La2 = -89.463f ;
		lat:Lo2 = 359.297f ;
		lat:Di = 0.7031252f ;
		lat:N = 128.f ;
		lat:units = "degrees_north" ;
		lat:GridType = "Gaussian Latitude/Longitude Grid (Quasi-Regular)" ;
		lat:long_name = "latitude" ;
	float lon(lon) ;
		lon:La1 = 89.463f ;
		lon:Lo1 = 0.f ;
		lon:La2 = -89.463f ;
		lon:Lo2 = 359.297f ;
		lon:Di = 0.7031252f ;
		lon:N = 128.f ;
		lon:units = "degrees_east" ;
		lon:GridType = "Gaussian Latitude/Longitude Grid (Quasi-Regular)" ;
		lon:long_name = "longitude" ;
}
............. and
CDO showdate ERAI.EP.1979-2013.nc
arning (splitTimevalue) : Reset wrong date/time to 0019-01-01 00:00:00!
  0019-01-01  0019-01-02  0019-01-03  0019-01-04  0019-01-05
0019-01-06  0019-01-07  0019-01-08  0019-01-09  0019-01-10  0019-01-11
 0019-01-12  0019-01-01  0019-01-02  0019-01-03  0019-01-04
0019-01-05  0019-01-06  0019-01-07  0019-01-08  0019-01-09  0019-01-10
 .......................................................
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file_ERAI.ctl
Type: application/octet-stream
Size: 332 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20150903/505d9b0c/attachment.obj 


More information about the gradsusr mailing list