<div dir="ltr"><div><div>Stuart,<br><br></div>The hirlam file is in grib1 and you have to use grib1 tools like wgrib and <a href="http://grib2ctl.pl">grib2ctl.pl</a><br></div>If you do a wgrib inventory, you get <br><br><div><div><div><div class="gmail_extra">ebis@linux-landing:/tmp$ wgrib -s hirlam_25_forecast_000.grb<br>1:0:d=16092012:GP:0 m above gnd:anl:NAve=0<br>2:240240:d=16092012:LAND:0 m above gnd:anl:NAve=0<br>..<br>20:4102920:d=16092012:TMP:0 m above gnd:anl:NAve=0<br><br><span style="background-color:rgb(255,0,0)">Undefined parameter table (center 99-0 table 1), using NCEP-opn</span><br>21:4306200:d=16092012:LFTX:0 m above gnd:anl:NAve=0<br>...<br><br></div><div class="gmail_extra">The highlighted warning says that the file is using local Table 1 from<br></div><div class="gmail_extra">Center 99 (De Bilt, Netherlands) but this is not a built-in wgrib table.<br></div><div class="gmail_extra">Wgrib is using the NCEP operational table and the variable names<br></div><div class="gmail_extra">are suspect. (You have to check whether the KNMI table matches<br></div><div class="gmail_extra">the NCEP operational table.)<br><br></div><div class="gmail_extra">You can make the ctl and index file by<br><br> $ <a href="http://grib2ctl.pl">grib2ctl.pl</a> -verf hirlam_25_forecast_000.grb >junk.ctl<br> $ gribmap -i junk.ctl<br><br></div><div class="gmail_extra">Since <a href="http://grib2ctl.pl">grib2ctl.pl</a> uses wgrib, the ctl file is using the NCEP-opn<br></div><div class="gmail_extra">names rather than the KNMI names.<br><br></div><div class="gmail_extra">The file plots but if you plot SHTF0m<br><br> SHTFL0m 0 122,105,0 ** 0 m above ground Sensible heat flux [W/m^2]<br><br></div><div class="gmail_extra">you see that the values are not the sensible heat flux (W/m/m). So you can plot<br></div><div class="gmail_extra">the fields but you have to find a copy of KNMI's grib table #1.<br><br><br></div><div class="gmail_extra">Users and producers can add local tables can add local tables to wgrib,<br></div><div class="gmail_extra">(Users=user file, Producers=added to wgrib source code)<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"> <a href="ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib/usertables.txt">ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib/usertables.txt</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Wesley<br><br><br><br></div><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 21, 2016 at 6:55 AM, Subhadeep Halder <span dir="ltr"><<a target="_blank" href="mailto:shalder@tropmet.res.in">shalder@tropmet.res.in</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><br>
Hi Stuart,<br>
<br>
While concatenating the grib files you are appending the extension as grib2 instead of grib. Grib1 and Grib2 formats are different,<br>
probably that is creating an issue. Try using .grb instead in the filename.<br>
<br>
Best,<br>
Subhadeep.<br>
<br>
<br>
----- Original Message -----<br>
From: <a href="mailto:gradsusr-request@gradsusr.org">gradsusr-request@gradsusr.org</a><br>
To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
Sent: Wednesday, September 21, 2016 4:03:12 PM<br>
Subject: gradsusr Digest, Vol 79, Issue 17<br>
<br>
Send gradsusr mailing list submissions to<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a target="_blank" rel="noreferrer" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gradsusr-request@gradsusr.org">gradsusr-request@gradsusr.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gradsusr-owner@gradsusr.org">gradsusr-owner@gradsusr.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of gradsusr digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Hirlam Grib Issue (stuart markham)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Wed, 21 Sep 2016 10:33:15 +0000<br>
From: stuart markham <<a href="mailto:stumark@hotmail.co.uk">stumark@hotmail.co.uk</a>><br>
Subject: [gradsusr] Hirlam Grib Issue<br>
To: grads <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID:<br>
<<a href="mailto:AM4PR0902MB1844555008D0018893AE8695F5F60@AM4PR0902MB1844.eurprd09.prod.outlook.com">AM4PR0902MB1844555008D0018893<wbr>AE8695F5F60@AM4PR0902MB1844.<wbr>eurprd09.prod.outlook.com</a>><br>
<br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi all,<br>
<br>
<br>
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.<br>
<br>
<br>
wget -O hirlam_25_forecast_000.grb <a target="_blank" rel="noreferrer" href="ftp://data.knmi.nl/download/hirlam_p1/0.2/noversion/0000/00/00/H11_V72_EUR_SINGLE_LEVEL_12_000_GB">ftp://data.knmi.nl/download/<wbr>hirlam_p1/0.2/noversion/0000/<wbr>00/00/H11_V72_EUR_SINGLE_<wbr>LEVEL_12_000_GB</a><br>
<br>
<br>
<br>
@ECHO Please wait, concetenating grb files...<br>
cat *.grb > hirlam_grib.grib2<br>
@ECHO Please wait, creating ctl file...<br>
perl <a target="_blank" rel="noreferrer" href="http://g2ctl.pl">g2ctl.pl</a> -verf hirlam_grib.grib2 > hirlam_grib.ctl<br>
@ECHO Please wait, creating idx file...<br>
gribmap -i hirlam_grib.ctl -e<br>
<br>
<br>
<br>
<br>
--<br>
Regards,<br>
<br>
Stuart Markham<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a target="_blank" rel="noreferrer" href="http://gradsusr.org/pipermail/gradsusr/attachments/20160921/fa7f11d9/attachment.html">http://gradsusr.org/pipermail/<wbr>gradsusr/attachments/20160921/<wbr>fa7f11d9/attachment.html</a><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: Capture.PNG<br>
Type: image/png<br>
Size: 226149 bytes<br>
Desc: Capture.PNG<br>
Url : <a target="_blank" rel="noreferrer" href="http://gradsusr.org/pipermail/gradsusr/attachments/20160921/fa7f11d9/attachment.png">http://gradsusr.org/pipermail/<wbr>gradsusr/attachments/20160921/<wbr>fa7f11d9/attachment.png</a><br>
<br>
------------------------------<br>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a target="_blank" rel="noreferrer" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br>
<br>
End of gradsusr Digest, Vol 79, Issue 17<br>
******************************<wbr>**********<br>
<br>
--<br>
Subhadeep Halder, Ph.D.<br>
<br>
Project Scientist-C<br>
Extended Range Prediction System<br>
National Monsoon Mission<br>
Indian Institute of Tropical Meteorology<br>
Ministry of Earth Sciences<br>
Pune-411008, Maharashtra, India.<br>
Phone: <a value="+912025904907" href="tel:%2B91%2020%2025904907">+91 20 25904907</a> (Off.)<br>
<a value="+919975664260" href="tel:%2B91%209975664260">+91 9975664260</a> (Cell.)<br>
Fax : <a value="+912025865142" href="tel:%2B91%2020%2025865142">+91 20 25865142</a><br>
Email: <a href="mailto:shalder@tropmet.res.in">shalder@tropmet.res.in</a><br>
<a href="mailto:subhadeeph@gmail.com">subhadeeph@gmail.com</a><br>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a target="_blank" rel="noreferrer" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
</blockquote></div><br></div></div></div></div></div>