[gradsusr] Problem in opening different netcdf files as one

Gantois, Marie marie.gantois at wur.nl
Fri Apr 9 09:38:06 EDT 2010


Hi all,
 
I'm a pretty new user of GrADS, I just installed the v2.0a7 version and
I have some difficulties in opening different netcdf files as one.
My files are data for the end of the 20th century (e.g. 1950-2008), and
since the files are too big they are split into e.g. 4 different files
of 14 to 15 years. I wrote the following control file to open the netcdf
files at once:
dset ^tg_0.25deg_reg_%ch_v2.0.nc

chsub 1 5479 1950-1964

chsub 5480 10957 1965-1979

chsub 10958 16436 1980-1994

chsub 16437 21550 1995-2008 

tdef 21550 linear 0Z01jan1950 1dy

dtype netcdf

title tg_0.25deg_reg

undef -999.999

options template

options yrev

xdef 464 linear -40.375 0.25 

ydef 201 linear 25.375 0.25 

zdef 1 linear 1 1

vars 1

tg=>tas 0 99 Mean daily temperature (Celsius)

endvars

 

GrADS makes no problem opening the control file, but I can't display my
variable at all, there's an error message: 

Scanning description file: E:/tg_0.25deg_reg1.ctl
Data file E:/tg_0.25deg_reg_%ch_v2.0.nc is open as file 1
LON set to -40.375 75.375
LAT set to 25.375 75.375
LEV set to 1 1
Time values set: 1950:1:1:0 1950:1:1:0
E set to 1 1
 
ga-> d tas
NetCDF Error (gancrow, nc_get_vara_double): NetCDF: Index exceeds
dimension bound
Data Request Error: Error for variable 'tas'
    Error ocurred at column 1
DISPLAY error: Invalid expression
    Expression = tas

If anyone can help me about that... That would be great!

 

Thanks,

Marie

MSc Student Wageningen University

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100409/9c189b79/attachment-0003.html 


More information about the gradsusr mailing list