<div dir="ltr"><div><div><div>Dave,<br><br></div>Yes, it&#39;s a problem with g2ctl that was introduced with grib2ctl v0.9.12.5beta3 (6/2006).<br></div><div>g2ct/grib2ctl need to find the 1st, 2nd and last files in chronological order. The<br></div><div>older grib2ctl used a sorted list of the files to find the 1st, 2nd and last files.  Then<br></div><div>NCEP decided to make forecast files with 2 digit or 3 digit forecast hours.  That<br></div><div>prevented using the sorted list from determining the 3 files.  The newer code<br></div><div>assumes that the datecode can have no extra characters.  Your files have<br></div><div>an underscore between the %d2 and %h2.  A fix will require some thinking.<br><br></div><div>Work around: rename the files so that there is no underscore between<br></div><div>the %d2 an %h2 fields.<br></div><div><br></div><div>Wesley<br></div><div><br><div><div><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 19, 2017 at 4:59 PM, Ryglicki, Dr. David <span dir="ltr">&lt;<a href="mailto:david.ryglicki@nrlmry.navy.mil" target="_blank">david.ryglicki@nrlmry.navy.mil</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_892879477988322680WordSection1">
<p class="gmail-MsoNormal">Hey, GrADS’ers.</p>
<p class="gmail-MsoNormal"> </p>
<p class="gmail-MsoNormal">Simple question about g2ctl and templating over GFS analyses. I’m pulling data from NCEP’s HAS system, and when I get the data, it looks something like this:</p>
<p class="gmail-MsoNormal"> </p>
<p class="gmail-MsoNormal">gfs_4_20120730_0000_000.grb2</p>
<p class="gmail-MsoNormal">gfs_4_20120730_0600_000.grb2</p>
<p class="gmail-MsoNormal">…</p>
<p class="gmail-MsoNormal"> </p>
<p class="gmail-MsoNormal">When I try templating with: “g2ctl -0 gfs_4_2012%m2%d2_%h200_00.<wbr>grb2”, I get the error: ‘Argument “0730_00” isn’t numeric in numeric gt (&gt;) at /path/to/g2ctl line 267.’</p>
<p class="gmail-MsoNormal"> </p>
<p class="gmail-MsoNormal">I can get around this pretty easily with some awk, but I was wondering… am I doing something wrong here, or is this just how it is?</p>
<p class="gmail-MsoNormal"> </p>
<p class="gmail-MsoNormal">Thanks.</p>
<p class="gmail-MsoNormal"> </p>
<p class="gmail-MsoNormal">~Dave</p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div></div></div></div></div>