Re: netcdf -> grib converter?

From: Michael Uddstrom <m.uddstrom_at_nyahnyahspammersnyahnyah>
Date: Wed, 20 Jun 2007 15:36:23 +1200

Dear All

Thanks for the help given... and I can now respond top my own query
should anyone else be interested in converting from netcdf to grib. I
should add that this response is based on input from various folks, and
more particularly from a local colleage!

> 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).

The CDO package will do the required task:

CDI (Climate Data Interface) from
http://www.mpimet.mpg.de/fileadmin/software/cdi/ cdi-1.0.0.tar.gz
CDO (Climate Data Operators) from
http://www.mpimet.mpg.de/fileadmin/software/cdo/ cdo-1.0.7.tar.gz

(you need grib code too)

So for our model which produces output on a rotated lat/lon grid, the
command

cdo -f grb -g nzlam.grid copy nzlam.nc nzlam.grib

(where nzlam.grid contains the rotated grid parameters)

produced a GRIB file that MetView could read and remap correctly.

Regards

Michael

>
> Thanks
>
> Michael
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
Dr. Michael J. Uddstrom
Science Leader: Environmental Forecasting
Principal Scientist: Meteorology and Remote Sensing
National Institute of Water and Atmospheric Research
Private Bag 14-901, Wellington, New Zealand
DDI: +64 4 386 0365, 	Fax: +64 4 386 2153,
Home: +64 4 478 9734
http://www.niwa.co.nz/


_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Tue Jun 19 2007 - 21:36:23 MDT

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