Converter grib2 -> grib

Eric Altshuler ela at COLA.IGES.ORG
Mon Mar 24 13:59:26 EDT 2008


Stefan,

There is the program 'cnvgrib' available from NCEP that converts between grib1 and grib2. It is complicated to build, since it requires several external libraries. You need a fortran compiler. I have built it successfully on linux using gfortran. The place to get it is:

http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/

Download the following files:

g2lib-1.1.0.tar
w3lib-1.5.tar
cnvgrib-1.1.5.tar
Build_cnvgrib.pdf (build instructions, not too clear but OK if you know what you're doing)

You also need the external libraries zlib, libpng and jasper. The jasper library is available on the above web page but it's out of date. The latest jasper (1.900.1) is at http://www.ece.uvic.ca/~mdadams/jasper/ and the latest libpng (1.2.25) is at http://www.libpng.org/pub/png/libpng.html. Most recent linux installations should have zlib 1.2.3 included in the system libraries so you won't need to build zlib separately. However, libpng is updated quite often so if your system has libpng in the system libs, it's probably old.

The build process is full of pitfalls (compiler flags, library and include search paths, etc.) so it is not for newbie types.

Best regards,

Eric L. Altshuler
Assistant Research Scientist
Center for Ocean-Land-Atmosphere Studies
4041 Powder Mill Road, Suite 302
Calverton, MD 20705-3106
USA

E-mail: ela at cola.iges.org
Phone: (301) 902-1257
Fax: (301) 595-9793


----- Original Message -----
From: "Stefan Gofferje" <gradsusers at GOFFERJE.HOMELINUX.ORG>
To: GRADSUSR at LIST.CINECA.IT
Sent: Monday, March 24, 2008 1:03:55 PM GMT -05:00 US/Canada Eastern
Subject: Converter grib2 -> grib

Hei,

is there a reliable converter from grib2 to grib which knowingly works
well with NOAA GFS data?
I have a couple of issues with GrADS2 (missing axis labels, no UDF,
etc.) so I would like to go back to 1.9 which doesn't understand grib2...

Greetings from Finland,
Stefan Gofferje

--
Since light travels faster than sound, is that why some people appear
bright until you hear them speak?



More information about the gradsusr mailing list