[gradsusr] Templating GFS analyses
Jennifer M Adams
jadams21 at gmu.edu
Wed Dec 20 10:55:51 EST 2017
It looks like the date stamping in the filenams is valid time, not initialization time with forecast hour, so you should use gfs_4_%y4%m2%d2%h200_000.grb2.
—Jennifer
> On Dec 20, 2017, at 10:49 AM, Ryglicki, Dr. David <david.ryglicki at nrlmry.navy.mil> wrote:
>
> Wesley,
>
>
>
> Thanks. That does work. Also, thanks to the other people who responded (I didn’t have the typo when I issued the command – honest!). Some simple awk’ing gets around this problem, but I was wondering if there was something else I was missing.
>
>
>
> Jen and Victor – The first two digits after the 3rd underscore are the initialization hour. The “forecast” hour is the last group and it never changes from 000 (it’s all analyses). My files look like this (after I removed the offending underscore):
>
>
>
> gfs_4_201207300000_000.grb2
>
> gfs_4_201207300600_000.grb2
>
> gfs_4_201207301200_000.grb2
>
> gfs_4_201207301800_000.grb2
>
> gfs_4_201207310000_000.grb2
>
> gfs_4_201207310600_000.grb2
>
> gfs_4_201207311200_000.grb2
>
> gfs_4_201207311800_000.grb2
>
> gfs_4_201208010000_000.grb2
>
> gfs_4_201208010600_000.grb2
>
> gfs_4_201208011200_000.grb2
>
> gfs_4_201208011800_000.grb2
>
> gfs_4_201208020000_000.grb2
>
> gfs_4_201208020600_000.grb2
>
> gfs_4_201208021200_000.grb2
>
> gfs_4_201208021800_000.grb2
>
> gfs_4_201208030000_000.grb2
>
> gfs_4_201208030600_000.grb2
>
> gfs_4_201208031200_000.grb2
>
> gfs_4_201208031800_000.grb2
>
> gfs_4_201208040000_000.grb2
>
> gfs_4_201208040600_000.grb2
>
> gfs_4_201208041200_000.grb2
>
> gfs_4_201208041800_000.grb2
>
> gfs_4_201208050000_000.grb2
>
> gfs_4_201208050600_000.grb2
>
> gfs_4_201208051200_000.grb2
>
> gfs_4_201208051800_000.grb2
>
> gfs_4_201208060000_000.grb2
>
> gfs_4_201208060600_000.grb2
>
> gfs_4_201208061200_000.grb2
>
> gfs_4_201208061800_000.grb2
>
> gfs_4_201208070000_000.grb2
>
> gfs_4_201208070600_000.grb2
>
> gfs_4_201208081200_000.grb2
>
> gfs_4_201208081800_000.grb2
>
> gfs_4_201208090000_000.grb2
>
> gfs_4_201208090600_000.grb2
>
> gfs_4_201208091200_000.grb2
>
> gfs_4_201208091800_000.grb2
>
> gfs_4_201208100000_000.grb2
>
> gfs_4_201208100600_000.grb2
>
> gfs_4_201208101200_000.grb2
>
> gfs_4_201208101800_000.grb2
>
>
>
> Would the initialization templating make that much of a difference then?
>
>
>
> ~Dave
>
>
>
> From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Wesley Ebisuzaki - NOAA Federal
> Sent: Wednesday, December 20, 2017 6:32 AM
> To: GrADS Users Forum
> Subject: Re: [gradsusr] Templating GFS analyses
>
>
>
> Dave,
>
> Yes, it's a problem with g2ctl that was introduced with grib2ctl v0.9.12.5beta3 (6/2006).
>
> g2ct/grib2ctl need to find the 1st, 2nd and last files in chronological order. The
>
> older grib2ctl used a sorted list of the files to find the 1st, 2nd and last files. Then
>
> NCEP decided to make forecast files with 2 digit or 3 digit forecast hours. That
>
> prevented using the sorted list from determining the 3 files. The newer code
>
> assumes that the datecode can have no extra characters. Your files have
>
> an underscore between the %d2 and %h2. A fix will require some thinking.
>
> Work around: rename the files so that there is no underscore between
>
> the %d2 an %h2 fields.
>
>
>
> Wesley
>
>
>
> On Tue, Dec 19, 2017 at 4:59 PM, Ryglicki, Dr. David <david.ryglicki at nrlmry.navy.mil> wrote:
>
> Hey, GrADS’ers.
>
>
>
> 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:
>
>
>
> gfs_4_20120730_0000_000.grb2
>
> gfs_4_20120730_0600_000.grb2
>
> …
>
>
>
> When I try templating with: “g2ctl -0 gfs_4_2012%m2%d2_%h200_00.grb2”, I get the error: ‘Argument “0730_00” isn’t numeric in numeric gt (>) at /path/to/g2ctl line 267.’
>
>
>
> 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?
>
>
>
> Thanks.
>
>
>
> ~Dave
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://secure-web.cisco.com/1WT_ctT3F5y8C69aVb8ug_PjLp6eeLWKxnecjNxWZ1DK8C1jdqa406gFLPdI5RQXW3DezoA7NgaUlVGMcoCvEcpjOfBSbdSQJrbCe0aCsLdDruqEhH4Qtvgucttkxzpjw48_ldOknedx-rrxJn_9g9sEYBIn3_ay7cPUcxRwgTe7bWrKTW2gVvkJhEBMxecdJuhvtKjH_HJT128hYWPqdMvTftXTVL0gCHe_xAORD-TxPLdQoSAoR_nAUjcTB_qHe4wbK2ylHeVXnUjrUyIGIOkZkuuhFGb8inAWpyYGsyirWvzJuV9yRktI51NZtzuhUWkUUgoM5i2EoMmMs3AfMtkj7CFGoZ6iDVVJw0eexn9nub7H9RYRMK0tWY4mMnUqA500MwXJuAg-8YZWjhC4ZJijBBJmjI3q54Eh92qNoqVFM8dM68Pp06dcjaUMqbpZ0/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University
More information about the gradsusr
mailing list