[gradsusr] Multiple netcdf files in one control file
mehwish ramzan
mehwish.ramzan at gmail.com
Mon May 12 02:48:07 EDT 2014
Dear GrADS community,
I am trying to merge multiple netcdf files into one control file so that i
can calculate the climatology of 25 years. The data is available in decadal
format like this;
cru_ts3.21.1971.1980.tmp.dat.nc
cru_ts3.21.1981.1990.tmp.dat.nc
cru_ts3.21.1991.2000.tmp.dat.nc
cru_ts3.21.1991.2000.tmp.dat.nc
while the information of one .nc file is as;
File 1 : CRU TS3.21 Mean Temperature
Descriptor: cru_ts3.21.1971.1980.tmp.dat.nc
Binary: cru_ts3.21.1971.1980.tmp.dat.nc
Type = Gridded
Xsize = 720 Ysize = 360 Zsize = 1 Tsize = 120
Number of Variables = 1
tmp 0 -999 near-surface temperature
By following some previous posts regarding same issue, according to my
understanding i prepared one ctl file which can be used as a combination of
above four separate files. The .ctl file is as follows;
DSET cru_ts3.21.%x31.%x30.tmp.dat.nc
OPTIONS template
DTYPE netcdf
XDEF 720 linear -89.75 89.75
YDEF 360 linear 0 360
ZDEF 1 linear 1000
TDEF 480 linear jan1971 1mo
vars 1
tmp 0 99 near-surface temperature
endvars
But when i tried to open this control file. It give error message;
Invalid variable record
--> The invalid description file record is:
--> tmp 0 -999 near-surface temperature
The data file was not opened.
I know i am making mistake in preparing ctl file but i don't know how to
put right information ?
Please help me in solving this issue.
Thank You
With Best Regards,
Mehwish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140512/01b8ac13/attachment-0001.html
More information about the gradsusr
mailing list