All,<div><br></div><div>I am working with SREF grib2 data and am extracting a subset of probabilities (i.e. Probability of visibilities below 1 mile) from the grib2 files found on NCEP's server (sref.pgrb212.prob_3hrly.grib2). Without getting into all the gorey details, I extract the probabilities I'm interested in using wgrib2 and write out new grib2 files for each forecast hour. ("wgrib2 sref.pgrb212.prob_3hrly.grib2 -match ":${fcst} hour" -grib SREF.f${hr}"). This gives me 30 individual grib2 files containing probabilities of visibilities below 1 mile (VIS.1609.f00, VIS.1609.f03, VIS.1609.f06, etc...).</div>
<div><br></div><div>I would like to use a control file template so I don't have to open 30 different files. Running <b><font face="courier new, monospace">g2ctl VIS.1609.f%f2</font> </b>gives me a control file which looks like this:</div>
<div><br></div><div><div><font face="courier new, monospace">dset ^VIS.1609.f%f2</font></div><div><font face="courier new, monospace">index ^VIS.1609.f00.idx</font></div><div><font face="courier new, monospace">undef 9.999E+20</font></div>
<div><font face="courier new, monospace">title VIS.1609.f00</font></div><div><font face="courier new, monospace">* produced by g2ctl v0.0.8.4</font></div><div><font face="courier new, monospace">* command line options: VIS.1609.f%f2</font></div>
<div><font face="courier new, monospace">* griddef=1:0:(185 x 129):grid_template=30:winds(grid): Lambert Conformal: (185 x 129) input WE:SN output WE:SN res 8 Lat1 12.190000 Lon1 226.541000 LoV 265.000000 LatD 25.000000 Latin1 25.000000 Latin2 25.000000 LatSP 0.000000 LonSP 0.000000 North P</font></div>
<div><font face="courier new, monospace">dtype grib2</font></div><div><font face="courier new, monospace">options template</font></div><div><font face="courier new, monospace">pdef 185 129 lccr 12.190000 -133.459 1 1 25.000000 25.000000 -95 40635.000000 40635.000000</font></div>
<div><font face="courier new, monospace">xdef 274 linear -152.855107 0.377930376864113</font></div><div><font face="courier new, monospace">ydef 133 linear 12.289391 0.369409090909091</font></div><div><font face="courier new, monospace">tdef 30 linear 03Z09sep2012 3hr</font></div>
<div><font face="courier new, monospace">zdef 1 linear 1 1</font></div><div><font face="courier new, monospace">vars 1</font></div><div><font face="courier new, monospace">VISsfc 0,1,0 0,19,0 ** surface Visibility [prob]</font></div>
<div><font face="courier new, monospace">ENDVARS</font></div></div><div><font face="courier new, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">This is what I expected. However when I run gribmap on this control file, I don't get anything to MATCH.</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><div><font face="courier new, monospace">[dan@leins devel]$ gribmap -v -i control</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f00</font></div>
<div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f03</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div>
<div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f06</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f09</font></div>
<div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f12</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div>
<div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f15</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f18</font></div>
<div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f21</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div>
<div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f24</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f27</font></div>
<div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f30</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div>
<div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f33</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f36</font></div>
<div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f39</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div>
<div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f42</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f45</font></div>
<div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f48</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div>
<div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f51</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f54</font></div>
<div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f57</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div>
<div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f60</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f63</font></div>
<div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f66</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div>
<div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f69</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f72</font></div>
<div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f75</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div>
<div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f78</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f81</font></div>
<div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f84</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div>
<div><div><font face="courier new, monospace">grib2map: scanning GRIB2 file: VIS.1609.f87</font></div><div><font face="courier new, monospace">1.1: lev1=1,0 var=0,19,0 pdt=5</font></div></div><div><font face="courier new, monospace">grib2map: reached end of files</font></div>
<div><font face="courier new, monospace">grib2map: Writing out the index file</font></div><div style="font-family:arial,helvetica,sans-serif"><br></div></div><div>Now, if I were to create individual control files for each file and run gribmap, that seems to work fine. I've also verified that each grib file contains data and it plots correctly in GrADS. What did I do wrong that I can't seem to template these data properly?</div>
<div><br></div><div>Thanks for any help!<br>Dan Leins</div>