[Fwd: Re: Do y'all have a suggestion for Ed?]

Jeff Whitaker jswhit at fastmail.fm
Wed May 3 11:16:19 MDT 2006


Rick Grubin wrote:
> Regarding g2clib, I've been working with it and found its API 
> reasonably easy to use for decoding, at least when compared to the 
> ECMWF grib_api code.  The grib_api code, however, does have a nice 
> built-in parser for reading codetables and extracting information at 
> runtime.
>
>> -------- Original Message --------
>> Subject: Re: Do y'all have a suggestion for Ed?
>> Date: Mon, 16 Jan 2006 18:44:07 -0000
>> From: Shah, Saurin B <saurin.shah at xxxxxxxxxxxx>
>> Reply-To: saurin.shah at xxxxxxxxxxxx
>> To: Gerry Creager N5JXS <gerry.creager at xxxxxxxx>, Sastry, Srikanth 
>> <sastry at xxxxxxxxxxxx>, Kaustav Ghoshal <kghoshal at xxxxxxxx>, Shah, 
>> Saurin Bipin <saurin782 at xxxxxxxxxxxx>
>
>> I have used g2clib for GRIB2 files and it is really good. It has 
>> routines to
>> write all 8 sections of a GRIB2 file, and also it has routines to 
>> decode a
>> GRIB2 file. The code is well documented too.
>>
>> The library can be found at
>> http://oceanlab.rsmas.miami.edu/explorer/SEACOOS/v2/src/degrib/src/grib2lib/g2clib-1.0.2/ 
>>
>
> Perhaps I'm missing something obvious (woudn't be the first time), but 
> it seems that g2clib does not offer this capability (or does it, and I 
> just don't see it?).  In looking at other GRIB2 decoders that make use 
> of g2clib, it seems that those developers had to write their own 
> methods for parsing/extracting info from codetables.  True?  If so, is 
> there anything folks can share (preferably C code -- I know of Jeff 
> Whitaker's python work and the Java decoder) that, given the info 
> extracted from g2clib's data structure about a GRIB2 file, can decode 
> text-based codetables?

Rick:  g2clib does a nice job of decoding and encoding, but you are 
right - it doesn't provide any way of matching the numeric code with the 
associated text attributes from the WMO manual.

-Jeff

-- 
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : Jeffrey.S.Whitaker at noaa.gov
325 Broadway                Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg

==============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================



More information about the netcdfgroup mailing list