[gradsusr] Parsing Out 3-hour APCP from New FV3-GFS
Wesley Ebisuzaki - NOAA Federal
wesley.ebisuzaki at noaa.gov
Wed Jul 3 10:50:38 EDT 2019
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> 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
> _______________________________________________
> gradsusr mailing list
> 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/1bd465dc/attachment.html>
More information about the gradsusr
mailing list