<div dir="ltr">Aaron, <div><br></div><div>I went to <a href="https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.20190704/00/">https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.20190704/00/</a> and searched for <span style="color:rgb(0,0,0);font-family:"Courier New",monospace;font-size:13.3333px">gfs.t00z.pgrb2.0p25.grib2, </span>but it did not exist. Are you sure you are using the right file name? There is a <a href="https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.20190704/00/gfs.t00z.pgrb2.0p25.anl">gfs.t00z.pgrb2.0p25.anl</a>. <span style="color:rgb(0,0,0)"></span></div><div><br></div><div>-Tom</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 3, 2019 at 6:42 AM Perry, Aaron (Alumni) <<a href="mailto:axp09171@alumni.northernvermont.edu">axp09171@alumni.northernvermont.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div id="gmail-m_-307808947226162536divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0px;margin-bottom:0px">I am trying to parse out 3-hour APCP from the new FV3-GFS GRIB2 files from <a href="https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.20190625/00/" class="gmail-m_-307808947226162536OWAAutoLink" id="gmail-m_-307808947226162536LPlnk185922" target="_blank">https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.20190625/00/</a>.
I am using a bash script to attempt this using the wgrib2 tool.</p>
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px"><b>My Efforts:</b></p>
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px"></p>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">ta=0</span></div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">count=80</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">while [ ${ta} -le 240 ]</span></div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">do</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">tb=`expr ${ta} + 3`</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">wgrib2 gfs.t00z.pgrb2.0p25.grib2 | grep ":APCP:surface:" | grep ":${ta}-${tb} hour acc fcst" | wgrib2 -i gfs.t00z.pgrb2.0p25.grib2 -grib gfs_apcp_${count}.grib2</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">count=`expr ${count} + 1`</span></div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">ta=`expr ${ta} + 3`</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">done</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">cat gfs_apcp_*.grib2 >> gfs_apcp_3hr.grib2</span></div>
<div><br>
</div>
<div>When this code is run, it is as if no parsing out has been done, because the new accumulating APCP parameters remain.</div>
<div><br>
</div>
<div>Is there something obvious that I'm doing wrong here?</div>
<br>
<p></p>
<p style="margin-top:0px;margin-bottom:0px">Thank you,</p>
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>
<div id="gmail-m_-307808947226162536Signature">
<div id="gmail-m_-307808947226162536divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<span style="font-size:12pt"></span>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:11pt"><b><span style="font-size:14pt">Aaron
Perry</span></b></span></font></font></div>
<div style="color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:11pt"><span style="font-size:14pt"></span></span></font><font face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt">Meteorologist<br>
</span><span style="font-size:12pt"></span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt">Class of '16</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt"><br>
</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt">Northern Vermont University-Lyndon</span></font></font></div>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt"><span style="font-size:10pt">(formerly </span><span style="font-size:10pt">Lyndon
State College)</span></span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt"><br>
<span style="font-size:12pt"></span><span style="font-size:12pt">Boston, Mass.</span></span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" color="#006FC9"><span style="font-size:12pt"><span style="font-size:12pt">Twitter:
</span><a href="https://twitter.com/AaronPerryWx" class="gmail-m_-307808947226162536OWAAutoLink" id="gmail-m_-307808947226162536LPNoLP" target="_blank"><span style="font-size:12pt">@AaronPerryWx</span></a></span></font><font size="2"><span style="font-size:11pt"><span style="font-size:12pt"><a href="https://twitter.com/arnpry" id="gmail-m_-307808947226162536LPNoLP" target="_blank"></a><a href="https://twitter.com/AaronPerryWx" class="gmail-m_-307808947226162536OWAAutoLink" id="gmail-m_-307808947226162536LPNoLP" target="_blank"></a></span></span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt">Email: </span></font><a href="http://Aaron.Perry@lyndonstate.edu/" id="gmail-m_-307808947226162536LPNoLP" target="_blank"><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size:12pt">Aaron.Perry@lyndonstate.edu</span></font></a></font></div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Tom Robinson<br> Department of Atmospheric Science Alumnus<br></div></div></div></div></div></div></div></div>