From Graziano Giuliani: -------------------------------------------------------------------- Hi Wesley, for a local project we did need a C++ interface to GRIB version 1 files, and for this purpose I developed some code which uses parts of Your wgrib and gribw programs/libraries. I am sending You a copy of the source, which is separated in two source file (Ebisuzaki.cpp and Ebisuzaki.h) which contain code from Your programs, with some modifications, and two files (GRIB.cpp and GRIB.h) with code written by me after reading Your code. Code is actually tested only on i386 with Linux (redhat 9.0, gcc/g++ 3.2.2 20030222 (Red Hat Linux 3.2.2-5), and code coverage testing is limited to extraction/creation of regular lat/lon grids (this part passes valgrind memory error checks). Documentation is included generated by doxygen. The work is intended for scientific usage into our Lab, and maybe for distribution to some friend of mine (at university of Hawaii, she needs a MM5->GRIB converter....). I am planning maybe a little GRIB->NetCDF converter, which is very simple to implement, at least for regular lat/lon grids. My code is GPLed, I did not found any copyright info on Your code/docs, so I included a generic "Copyright Wesley Ebisuzaki " in code directly taken from wgrib/gribw. As I am not interested and have not time to distribute it directly, I am sending it to You as a contribution to Your codebase. Many thanks for Your valuable work! Without your wgrib program we wouldn't have such an easy access to huge meteorological databases ! By the way, I have found a little bug in Your wgrib program, at least in version v1.8.0.9b (6-28-04) to which I have access. On the wgrib_main.c source file, at line 645 a branch condition is wrong and causes segfault if a gds is missing and inventory is requested (-V option): 645 if (GDS_Harmonic_type(gds) == 1) 646 printf(" Associated Legendre polynomials\n"); I think it should be: 645 if (gds && GDS_Harmonic_type(gds) == 1) 646 printf(" Associated Legendre polynomials\n"); Thanks again! Graziano. \ | / (@ @) -------------------------o00-(_)-00o ----------------------------- LaMMA - Laboratorio per la Meteorologia e la Modellistica Ambientale Laboratory for Meteorology and Environmental Modelling Via Madonna del Piano, 50019 Sesto Fiorentino (FI) tel: + 39 055 4483049 fax: + 39 055 444083 web: www.lamma.rete.toscana.it e-mail: giuliani@lamma.rete.toscana.it