[gradsusr] Parsing Out 3-hour APCP from New FV3-GFS

Perry, Aaron (Alumni) axp09171 at alumni.northernvermont.edu
Tue Jun 25 10:45:07 EDT 2019

I am trying to parse out 3-hour APCP from the new FV3-GFS GRIB2 files from https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.20190625/00/. I am using a bash script to attempt this using the wgrib2 tool.

My Efforts:


while [ ${ta} -le 240 ]

tb=`expr ${ta} + 3`

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

count=`expr ${count} + 1`
ta=`expr ${ta} + 3`


cat gfs_apcp_*.grib2 >> gfs_apcp_3hr.grib2

When this code is run, it is as if no parsing out has been done, because the new accumulating APCP parameters remain.

Is there something obvious that I'm doing wrong here?

Thank you,

Aaron Perry
Class of '16
Northern Vermont University-Lyndon
(formerly Lyndon State College)
Boston, Mass.
Twitter: @AaronPerryWx<https://twitter.com/AaronPerryWx><https://twitter.com/arnpry><https://twitter.com/AaronPerryWx>
Email: Aaron.Perry at lyndonstate.edu<http://Aaron.Perry@lyndonstate.edu/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190625/c8f5291b/attachment.html>

More information about the gradsusr mailing list