writing grib2 to NetCDF

zilore mumba zmumba at YAHOO.COM
Tue Nov 17 06:22:02 EST 2009


Thank you Jennifer for the precision. In fact the data is actually in Grib1 because WGRIB2 does not work on it but wgrib does, though with an error due to double headers.



--- On Mon, 11/16/09, Jennifer Adams <jma at COLA.IGES.ORG> wrote:

From: Jennifer Adams <jma at COLA.IGES.ORG>
Subject: Re: writing grib2 to NetCDF
To: GRADSUSR at LIST.CINECA.IT
Date: Monday, November 16, 2009, 5:27 PM

Dear Zilore -- wgrib and grib2ctl are not designed for use with GRIB2. Try wgrib2 and g2ctl instead. Alternatively, you can use the output from grib2scan (a utility in the GrADS distribution) that will tell you the grib2 codes that are required for a GrADS descriptor file. If the data are on a thinned grid, you'll definitely need g2ctl to create the pdef file for you. You should be able to read this file with GrADS in its native format. --Jennifer

On Nov 13, 2009, at 4:11 AM, zilore mumba wrote:
Dear Grads users,
Help sought if possible.
I have data in GRIB2 format from ECMWF. Because of the double headers in the data (complex packing), wgrib is not able to decode it propoerly hence not possible to make a ctl with grib2ctl.pl.
What I do is to decode the data with the ECMWF GRIB_API decoder and rewrite it in binary for grads with fortran. This works fine. I thought another alternative would be to convert the GRIB2 to NetCDF.
I have checked the listserver but did not find anything.
Is such a conversion possible?
Thanks for assistance
Zilore


 
 --Jennifer M. AdamsIGES/COLA4041 Powder Mill Road, Suite 302Calverton, MD 20705jma at cola.iges.org

 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091117/2d224717/attachment.html 


More information about the gradsusr mailing list