<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The error message you're getting is strange ... it's not that the template substitution isn't working, but the entire file name is just blank. If you use the -v option, is it matching records in the first file? Are all the other files in the same place with the same read permission? I use the template z_tigge_c_ecmf_%iy4%im2%id2%ih20000_0%f3_pl_glob_prod.grib2 for tigge ecmf forecasts. If you hard-code the initial time, that should be fine too. What else is in your descriptor file? Are you sure your TDEF is right? And the path in DSET -- are you using full path or relative path with the ^? By the way, EDEF should look like this (change YYY to your initial time, 00z15aug2008) and names can be changed to anything you want: <div><div>edef 52</div><div>cf 41 YYY 1,0</div><div>fc 41 YYY </div><div>ppf1 41 YYY 3,1</div><div>ppf2 41 YYY 3,2</div><div>ppf3 41 YYY 3,3</div><div>...</div><div><div>ppf50 41 YYY 3,50</div><div>endedef</div></div><div><br></div><div>--Jennifer</div><div><div><br><div><div>On Feb 16, 2011, at 10:59 AM, Steven Chan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello All:<br><br>Thank you for previous help. I regret that I was not aware that netCDF <br>problem I reported was already a known sure.<br><br>This time I have another question.<br><br>I have 3 GRIB2 files:<br><br>z_tigge_c_ecmf_20080815000000_0000_pl_glob_prod.grib2<br>z_tigge_c_ecmf_20080815000000_0006_pl_glob_prod.grib2<br>z_tigge_c_ecmf_20080815000000_0012_pl_glob_prod.grib2<br><br>which 20080815000000 is the base initial time. "0000", "0006", "0012" is <br>the forecast hour.<br>All 3 GRIB2 files have the same base time. A sample wgrib2 listing gives:<br>1:0:d=2008081500:HGT:50 mb:anl:ENS=low-res ctl <- <br>z_tigge_c_ecmf_20080815000000_0000_pl_glob_prod.grib2<br>1:0:d=2008081500:HGT:50 mb:6 hour fcst:ENS=low-res ctl <- <br>z_tigge_c_ecmf_20080815000000_0006_pl_glob_prod.grib2<br>1:0:d=2008081500:HGT:50 mb:12 hour fcst:ENS=low-res ctl <- <br>z_tigge_c_ecmf_20080815000000_0012_pl_glob_prod.grib2<br><br>I would expect:<br>z_tigge_c_ecmf_20080815000000_0%f3_pl_glob_prod.grib2<br>to be the correct way the template the files.<br><br>However, I get the following errors:<br>[scchan@elnino 2008081500]$ gribmap -i z_tigge_c_ecmf_20080815000000_pl.ctl<br>grib2map: scanning GRIB2 file: <br>z_tigge_c_ecmf_20080815000000_0000_pl_glob_prod.grib2<br>grib2map: scanning GRIB2 file:<br>grib2map warning: could not open GRIB file:<br>grib2map: reached end of files<br>grib2map: Writing out the index file<br><br>It appears that gribmap simply does not know how to increment the file <br>names to z_tigge_c_ecmf_20080815000000_0006_pl_glob_prod.grib2<br><br>If I create a control for each GRIB2 file, then the problem can be <br>avoided. Of course, that defeats the purpose of using a template to <br>begin with. May be I am doing something wrong that I did not know...<br><br>Thank you ahead for the answers.<br>Steven Chan<br><br><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; "><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"></div> </div><br></div></div></div></body></html>