<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17080" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=620442814-08092010><FONT face=Arial
color=#008000 size=2>Salut,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=620442814-08092010><FONT face=Arial
color=#008000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=620442814-08092010><FONT face=Arial
color=#008000 size=2>I had a similar problem, not sure if it is the same
issue...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=620442814-08092010>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>Here is what I do, based on info I dug up in the wgrib2
pages:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>There is a small bug in the grib2 file system that requires
a kludge so that grads can view it:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>bash script segment:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>wgrib2 $downloaded_grib_file -set_flag_table_3.3 48 -grib
$modified_grib_file</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>g2ctl $modified_grib_file >
$CTL_filename</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>gribmap -1 $CTL_filename</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>Of course you may need to point to the full path
for <SPAN class=620442814-08092010>the (</SPAN>wgrib2 g2ctl gribmap<SPAN
class=620442814-08092010>)</SPAN><SPAN class=620442814-08092010>
executables</SPAN>.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>In short, take the downloaded grib file , use wgrib2 to
adjust the resolution parameter using "-set_flag_table_3.3 48" output to a new
grib file. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>Then use g2ctl to make the contrl file.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>This is for files downloaded from NCEP, so presumably
should be same as for NOAA. It has something to do with grid spacing, and my
impression (which may be wrong) is it may only be necessasry for certain grids
like the lambert conformal.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial><FONT
color=#008000><FONT size=2><SPAN class=620442814-08092010>Bonne
journée</SPAN>,</FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=404213414-26082010><FONT face=Arial
color=#008000 size=2>Alister.</FONT></SPAN></DIV></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> gradsusr-bounces@gradsusr.org
[mailto:gradsusr-bounces@gradsusr.org] <B>On Behalf Of
</B>pierre.lacombe@mddep.gouv.qc.ca<BR><B>Sent:</B> Wednesday, September 08,
2010 8:17 AM<BR><B>To:</B> gradsusr@gradsusr.org<BR><B>Subject:</B> [gradsusr]
Problems with wgrib2.exe : No output 0k file<BR></FONT><BR></DIV>
<DIV></DIV>
<P><IMG src="http://www.mddep.gouv.qc.ca/accueil/bannieres/menv/mddep.jpg"
NOSEND="1"></P>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>I am a user of
Windows XP.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>We are currently
using grib1 format and it work perfectly.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>I am trying to use
the grib2 format with the forcast at the site <A
href="http://nomads.ncdc.noaa.gov/data/gfs-avn-hi/">http://nomads.ncdc.noaa.gov/data/gfs-avn-hi/</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>I am able to
download these files with wget without difficulties.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>Then I use perl with
the programme file g2clt and then i am unable to obtain a ctl
files.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>When i analyse the
g2ctl file i find that the wgrib2.exe executable is making an output as
0k</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>and i have a "Big
Problem" in the output of g2ctl.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>My wgrib2 is in the
Path variable of the windows system.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>My output file is
accessible and is not read only file.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>I a cygwin1.dll with
wgrib2.exe in the opengrads</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>I don't know what to
think of this exept that wgrib2 is not working correctly.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>I have the vesrion
v0.178e of wgrib2</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>I have a version 2
of grads</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>My Wgrib2 went with
my installation of opengrads</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>Why is wgrib
functionning and not wgrib2?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>Also i tested wgrib2
with the command -csv and then no output 0k</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>Do you have any
ideas?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>Thank you for your
ideas and you time</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>Pierre
Lacombe</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=996540214-08092010>Computer
Analyst</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010>pierre.lacombe@mddep.gouv.qc.ca</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=996540214-08092010></SPAN></FONT> </DIV></BODY></HTML>