Re: netcdf -> grib converter?

From: Rick Grubin <grubin_at_nyahnyahspammersnyahnyah>
Date: Tue, 19 Jun 2007 18:07:06 -0600

Hi Michael,

> I have searched the archive, and can find a number of grib to
> netcdf converters, but not netcdf to grib. Can anyone point me in
> the right direction (please).

NCL's 'ncl_convert2nc' will, as you note, convert GRIB data (GRIB1
and GRIB2) files to netCDF.

However, going the other direction -- netCDF to GRIB -- isn't
something that NCL can do. NCL does not write GRIB-formatted files,
as noted here:

     http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/
NclFormatSupport.shtml#GRIB

There are tools to write (encode) GRIB files. For GRIB1 data, you
can use the 'w3' library. For GRIB2 data, you have two options,
'g2lib' (Fortran) and 'g2clib' (C). Both are available at:

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

-Rick.
----
Rick Grubin NCAR/TDD/CISL/VETS
Visualization + Enabling Technologies
grubin_at_ucar.edu 303.497.1832

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jun 19 2007 - 18:07:06 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 20 2007 - 17:02:19 MDT