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

Perry, Aaron (Alumni) axp09171 at alumni.northernvermont.edu
Wed Jul 3 10:58:55 EDT 2019


Thank you for the guidance Wesley!


Aaron Perry
Meteorologist
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/>
________________________________
From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Wesley Ebisuzaki - NOAA Federal <wesley.ebisuzaki at noaa.gov>
Sent: Wednesday, July 3, 2019 10:50:38 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] Parsing Out 3-hour APCP from New FV3-GFS

This message is from an external sender. Please be careful when clicking on links and attachments.


Aaron,

Maybe trick #66 will help.

    https://www.ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/tricks.wgrib2

Wesley


On Wed, Jul 3, 2019 at 6:54 AM Perry, Aaron (Alumni) <axp09171 at alumni.northernvermont.edu<mailto:axp09171 at alumni.northernvermont.edu>> wrote:

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:


ta=0
count=80

while [ ${ta} -le 240 ]
do

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`

done

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
Meteorologist
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/>
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190703/4b97a795/attachment-0001.html>


More information about the gradsusr mailing list