using templates with forecast files

Roz MacCracken rozmac at IGES.ORG
Wed Oct 15 17:33:26 EDT 2008


I am trying to create a templated control file for a couple of forecast files.

I have files with the name:
2008101400.AWIPSF06.tm00.sg - 2008101400.AWIPSF36.tm00.sg (there are 6 files
total).  I have created control files called:
eta6.awipsf06.ctl - eta6.awipsf36.ctl  (mainly because I can't get the
%f2 option to work in my grads scripts.)

 Then, I created an index file called eta6.awipsf06.idx, using:
gribmap -i eta6.awipsf06.ctl,
which was created without errors.

I can display data using the respective control file, pointing
at the corresponding index file.  (this is without templating).  So,
the control files do display data without templating.

I have changed the dset line in the control file to:
dset ^%y4%m2%d2%h2.AWIPSF06.tm00.sg, changed tdef to 999,
and have added the "options template" to the control file.

I have 2 questions..fairly easy, but, I can't get this to work...

First, when I change the control file to the dset, and "options template"
above, and "set t 1", I get the error, "Undefined Grid", with no data.
Is there something that I've missed doing in my control file so that
I can display data using a template?

Should I have changed the dset to %y4%m2%d2%h2.AWIPSF%f2.tm00.sg?  And,
if this is a better way, how do you set the date within a
grads script to get it to display the forecasted time?
(i.e., "set time 12Z14Oct2008(f=12)"...that may not be right...)

Thanks.

Roz MacCracken



More information about the gradsusr mailing list