[gradsusr] How to use template option when there are additional times in each files

Jennifer M Adams jadams21 at gmu.edu
Tue Mar 15 12:36:10 EDT 2016


Hi, Mano —
You will have to use chsub for this. Your data files are overlapping, so I suggest you ignore the extra data at the end of each file, except the last one. The tdef statement I put below spans 00z15dec1994 to 23z14jan2005

dset ^%ch
chsub     1  8760 1995/pre_1995.dat
chsub  8761 17544 1996/pre_1996.dat
chsub 17545 26304 1997/pre_1997.dat
. . .
chsub 78889 88416 2004/pre_2004.dat
tdef 88416 linear 15zdec1994 60mn

—Jennifer

On Mar 15, 2016, at 10:53 AM, lpasmanoranjan <lpasmanoranjan at gmail.com<mailto:lpasmanoranjan at gmail.com>> wrote:

Dear Users,
I am having a problem in viewing the following dataset as template option. I have hourly dataset with additonal times as following:

1995/pre_1995.dat
1996/pre_1996.dat
1997/pre_1997.dat
1998/pre_1998.dat
and so on for 10 years

in each datafile the tdef starts from 15dec of previous year and ends at 15jan of next year. This means I have 1 month additional data in each file.

Can anybody please help me how to make a descriptor file for the above files? I have written as

dset ^%y4/pre_%y4.dat
options big_endian template
undef -999.9
xdef     520 linear 65  0.2
ydef     540 linear 5  0.2
zdef     1 levels 1
tdef 87660  linear 00z01jan1995   60mn
vars    1
pre 0 99
endvars

Thank you for any kind of help of suggetion in this regard.

Kind Regards,
Mano

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160315/f55cbd0c/attachment.html 


More information about the gradsusr mailing list