[gradsusr] sdfwrite a netcdf file

Shing midicarcas at gmail.com
Sat Jun 25 07:29:05 EDT 2011


dear GrADS experts,

i successfully used the SDFWRITE command to write a regular grads-format
data into a NETCDF file. thank you very much! it's really convenient in the
latest version of GrADS!

i do have a question, however. is it possible to indicate a Special Time
(e.g., Specific Date of the Beginning of the Data Sets)  in the control
files?

the data i'm looking is from the same model but split into different sets,
due to the large size of the data. i hope to keep the information of the
FIRST DAY OF THE MODEL OUTPUT in each of the netcdf file.

the control files i have are like this:

for first set of data:

dset ^Out1.dat
OPTIONS LITTLE_ENDIAN
undef -9999.
title FRCN 20C3M Run1 Specific Humidity
XDEF 100 LINEAR  0 0.25
YDEF  60 LINEAR  0 0.25
ZDEF  10 LEVELS  1000 925 850 750 700 600 500 400 300 200
-->TDEF 365 LINEAR  1jan1981 1dy
VARS 1
q  9 0    mm/day
endvars

for the 2nd set of data:

dset ^Out2.dat
OPTIONS LITTLE_ENDIAN
undef -9999.
title FRCN 20C3M Run1 Specific Humidity
XDEF 100 LINEAR  0 0.25
YDEF  60 LINEAR  0 0.25
ZDEF  10 LEVELS  1000 925 850 750 700 600 500 400 300 200
--> TDEF 365 LINEAR  1jan1982 1dy
VARS 1
q  9 0    mm/day
endvars

the "TDEF" indicate the starting time of each specific data set. Then I used
sdfwrite function to convert these data sets into netcdf files. i hope to
keep the information of the FIRST DATE OF THE MODEL OUTPUT in each netcdf
file.

i googled this issue but didn't find the answer =(  is there a way to add
such an information?

thank you very much!

sincerely,
shing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110625/909c4bbe/attachment-0003.html 


More information about the gradsusr mailing list