[gradsusr] Hirlam Grib Issue

Wesley Ebisuzaki - NOAA Federal wesley.ebisuzaki at noaa.gov
Wed Sep 21 08:56:46 EDT 2016


Stuart,

The hirlam file is in grib1 and you have to use grib1 tools like wgrib and
grib2ctl.pl
If you do a wgrib inventory, you get

ebis at linux-landing:/tmp$ wgrib -s hirlam_25_forecast_000.grb
1:0:d=16092012:GP:0 m above gnd:anl:NAve=0
2:240240:d=16092012:LAND:0 m above gnd:anl:NAve=0
..
20:4102920:d=16092012:TMP:0 m above gnd:anl:NAve=0

Undefined parameter table (center 99-0 table 1), using NCEP-opn
21:4306200:d=16092012:LFTX:0 m above gnd:anl:NAve=0
...

The highlighted warning says that the file is using local Table 1 from
Center 99 (De Bilt, Netherlands) but this is not a built-in wgrib table.
Wgrib is using the NCEP operational table and the variable names
are suspect.  (You have to check whether the KNMI table matches
the NCEP operational table.)

You can make the ctl and index file by

  $ grib2ctl.pl -verf hirlam_25_forecast_000.grb >junk.ctl
  $ gribmap -i junk.ctl

Since grib2ctl.pl uses wgrib, the ctl file is using the NCEP-opn
names rather than the KNMI names.

The file plots but if you plot SHTF0m

    SHTFL0m  0 122,105,0 ** 0 m above ground Sensible heat flux [W/m^2]

you see that the values are not the sensible heat flux (W/m/m).  So you can
plot
the fields but you have to find a copy of KNMI's grib table #1.


Users and producers can add local tables can add local tables to wgrib,
(Users=user file, Producers=added to wgrib source code)

    ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib/usertables.txt

Wesley



On Wed, Sep 21, 2016 at 6:55 AM, Subhadeep Halder <shalder at tropmet.res.in>
wrote:

>
>  Hi Stuart,
>
>  While concatenating the grib files you are appending the extension as
> grib2 instead of grib. Grib1 and Grib2 formats are different,
>  probably that is creating an issue. Try using .grb instead in the
> filename.
>
>  Best,
>  Subhadeep.
>
>
> ----- Original Message -----
> From: gradsusr-request at gradsusr.org
> To: gradsusr at gradsusr.org
> Sent: Wednesday, September 21, 2016 4:03:12 PM
> Subject: gradsusr Digest, Vol 79, Issue 17
>
> Send gradsusr mailing list submissions to
>         gradsusr at gradsusr.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://gradsusr.org/mailman/listinfo/gradsusr
> or, via email, send a message with subject or body 'help' to
>         gradsusr-request at gradsusr.org
>
> You can reach the person managing the list at
>         gradsusr-owner at gradsusr.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gradsusr digest..."
>
>
> Today's Topics:
>
>    1. Hirlam Grib Issue (stuart markham)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 21 Sep 2016 10:33:15 +0000
> From: stuart markham <stumark at hotmail.co.uk>
> Subject: [gradsusr] Hirlam Grib Issue
> To: grads <gradsusr at gradsusr.org>
> Message-ID:
>         <AM4PR0902MB1844555008D0018893AE8695F5F60 at AM4PR0902MB1844.
> eurprd09.prod.outlook.com>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all,
>
>
> I've been trying to produce charts using the free source Hiram data from
> KNMI. I grab the gribs using wget, which isnt an issue at all but the g2ctl
> code inst working. I've attached an image showing the grads error. I'm
> pretty stumped by this so any help would be much appreciated.
>
>
> wget  -O hirlam_25_forecast_000.grb ftp://data.knmi.nl/download/
> hirlam_p1/0.2/noversion/0000/00/00/H11_V72_EUR_SINGLE_LEVEL_12_000_GB
>
>
>
> @ECHO Please wait, concetenating grb files...
> cat *.grb > hirlam_grib.grib2
> @ECHO Please wait, creating ctl file...
> perl g2ctl.pl -verf hirlam_grib.grib2 > hirlam_grib.ctl
> @ECHO Please wait, creating idx file...
> gribmap -i hirlam_grib.ctl -e
>
>
>
>
> --
> Regards,
>
> Stuart Markham
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160921/
> fa7f11d9/attachment.html
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: Capture.PNG
> Type: image/png
> Size: 226149 bytes
> Desc: Capture.PNG
> Url : http://gradsusr.org/pipermail/gradsusr/attachments/20160921/
> fa7f11d9/attachment.png
>
> ------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> End of gradsusr Digest, Vol 79, Issue 17
> ****************************************
>
> --
>  Subhadeep Halder, Ph.D.
>
>  Project Scientist-C
>  Extended Range Prediction System
>  National Monsoon Mission
>  Indian Institute of Tropical Meteorology
>  Ministry of Earth Sciences
>  Pune-411008, Maharashtra, India.
>  Phone: +91 20 25904907 (Off.)
>         +91 9975664260 (Cell.)
>  Fax :  +91 20 25865142
>  Email: shalder at tropmet.res.in
>         subhadeeph at gmail.com
>
> _______________________________________________
> 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/20160921/a257b585/attachment-0001.html 


More information about the gradsusr mailing list