<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi, Roz -- <div>Your templated descriptor file should have the following entries:</div><div><br></div><div>DSET ^%iy4%im2%id2%ih2.AWIPSF%f2.tm00.sg</div><div>OPTIONS template</div><div>TDEF 7 linear 00z14oct2008 6hr</div><div><br></div><div>I feel it's worth the effort to make your metadata as accurate as possible. Use an accurate number of time steps -- why say you have 999 time steps when in reality you only have 6? Actually, the correct way to set up this forecast data set is to put 7 in the TDEF entry because the 00hr time step, although not present in your list of data files, is essential for resolving the %iy, %im, %id, and %ih substitution strings properly in your file names. Plus it just makes sense to have the first time step of your forecast data set be the initialization time, even if you don't have any data. GrADS will just set the first time step to missing -- you'll need to 'set t 2' before being able to display a variable. Don't forget you must also rerun gribmap if you change any of the grid definition or variable entries in your descriptor file. Use the -v option with gribmap and check to make sure everything is matching properly for each data file. </div><div><br></div><div>--Jennifer</div><div><br></div><div><br></div><div><br></div><div><br><div><div>On Oct 16, 2008, at 12:08 PM, Roz MacCracken wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi All,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I am trying to create a templated control file for a couple of forecast</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">files.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I have files with the name:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2008101400.AWIPSF06.tm00.sg - 2008101400.AWIPSF36.tm00.sg (there are 6 files</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">total).<span class="Apple-converted-space">  </span>I have created control files called:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">eta6.awipsf06.ctl - eta6.awipsf36.ctl<span class="Apple-converted-space">  </span>(mainly because I can't get the</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">%f2 option to work in my grads scripts.)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Then, I created an index file called eta6.awipsf06.idx, using:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">gribmap -i eta6.awipsf06.ctl,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">which was created without errors.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I can display data using the respective control file, pointing</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">at the corresponding index file.<span class="Apple-converted-space">  </span>(this is without templating).<span class="Apple-converted-space">  </span>So,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the control files do display data without templating.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I have changed the dset line in the control file to:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">dset ^%y4%m2%d2%h2.AWIPSF06.tm00.sg, changed tdef to 999,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">and have added the "options template" to the control file.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I have 2 questions..fairly easy, but, I can't get this to work...</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">First, when I change the control file to the dset, and "options template"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">above, and "set t 1", I get the error, "Undefined Grid", with no data.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Is there something that I've missed doing in my control file so that</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I can display data using a template?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Should I have changed the dset to %y4%m2%d2%h2.AWIPSF%f2.tm00.sg?<span class="Apple-converted-space">  </span>And,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">if this is a better way, how do you set the date within a</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">grads script to get it to display the forecasted time?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(i.e., "set time 12Z14Oct2008(f=12)"...that may not be right...)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Roz MacCracken</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Sample of part of the control file:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">dset /ETA6/%y4%m2/%y4%m2%d2%h2.AWIPSF06.tm00.sg</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">index /ETA6/ctl/maps/test.AWIPSF06.tm00.sg.idx</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">undef 9.999E+20</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">title 2008100100.AWIPSF06.tm00.sg</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">*<span class="Apple-converted-space">  </span>produced by grib2ctl v0.9.12.5p41</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">dtype grib 212</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">options template</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">pdef 185 129 lcc 35.0 -95.0 105 49 25 25 -95 40635 40635</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">xdef 181 linear -140 0.5</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ydef<span class="Apple-converted-space">  </span>91 linear<span class="Apple-converted-space">  </span>15 0.5</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">tdef 100 linear 00Z01oct2008 1dy</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">zdef 1 linear 1 1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">vars 31</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ACPCPsfc<span class="Apple-converted-space">  </span>0 63,1,0<span class="Apple-converted-space">  </span>** surface Convective precipitation [kg/m^2]</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ALBDOsfc<span class="Apple-converted-space">  </span>0 84,1,0<span class="Apple-converted-space">  </span>** surface Albedo [%]</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">APCPsfc<span class="Apple-converted-space">  </span>0 61,1,0<span class="Apple-converted-space">  </span>** surface Total precipitation [kg/m^2]</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">BGRUNsfc<span class="Apple-converted-space">  </span>0 234,1,0<span class="Apple-converted-space">  </span>** surface Baseflow-groundwater runoff [kg/m^2]</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">CAPEsfc<span class="Apple-converted-space">  </span>0 157,1,0<span class="Apple-converted-space">  </span>** surface Convective Avail. Pot. Energy [J/kg]</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">CFRZRsfc<span class="Apple-converted-space">  </span>0 141,1,0<span class="Apple-converted-space">  </span>** surface Categorical freezing rain [yes=1;no=0]</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">CICEPsfc<span class="Apple-converted-space">  </span>0 142,1,0<span class="Apple-converted-space">  </span>** surface Categorical ice pellets [yes=1;no=0]</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">CNWATsfc<span class="Apple-converted-space">  </span>0 223,1,0<span class="Apple-converted-space">  </span>** surface Plant canopy surface water [kg/m^2]</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">CRAINsfc<span class="Apple-converted-space">  </span>0 140,1,0<span class="Apple-converted-space">  </span>** surface Categorical rain [yes=1;no=0]</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">etc....</div> </blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></span> </div><br></div></body></html>