Converter grib2 -> grib

Kevin Levey klevey at CUSTOMWEATHER.COM
Mon Mar 24 14:12:21 EDT 2008


There is also an easier way to get cnvgrib, wgrib2 and wgrib1 all
precompiled and should work right out of the box.

If you don't know about this, there is a great PERL script called
Gribmaster.

Go to http://strc.comet.ucar.edu/gribmaster/index.htm

It's a fantastic PERL script to download just about any NWS data set. We've
run it successfully in our production environment for over a year now with
perfect results. The documentation is really good. You can fully automate
your downloads, have them checked, converted and copied to other servers
without using hundreds of your own scripts to do the same.

It works on both our FEDORA CORE 4 32-bit linux AND CENTOS 5 64-bit servers
and no compiling was necessary - just unzip and start using it.

Even if you don't want to use this script, you can still get the cnvgrib
program from the /bin subfolder.

USAGE:

cnvgrib -g21 input(grib2) output(grib1)
cnvgrib -g12 input(grib1) output(grib2)


Hope this helps.


Regards

Kevin M Levey, MSc (University of Cape Town)
Director of Meteorological Operations
CustomWeather, Inc
San Francisco, CA, USA

http://www.customweather.com
http://www.myforecast.com
http://www.1stweather.com





> -----Original Message-----
> From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On
> Behalf Of Eric Altshuler
> Sent: Monday, March 24, 2008 10:59 AM
> To: GRADSUSR at LIST.CINECA.IT
> Subject: Re: Converter grib2 -> grib
>
> 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