Project

General

Profile

copy grib2 to netcdf

Added by Jure Praznikar almost 12 years ago

When I copy grb2 file to netcdf format, I get only 21 parameters in new netcdf file.

cdo -f nc 2010091918.grb2 2010091918.nc

In new nc file is no V component of wind.

If I use command ncl_convert2nc" (NCAR Command Language Version 5.2.0), then
in nc file are all 24 parameters including V component of wind.

I assume that in original grb2 file are 24 parameters, but after using cdo there are only 21 parameters?

cdo -V

Climate Data Operators version 1.5.5 (http://code.zmaw.de/projects/cdo)
Compiler: gcc -std=gnu99 -g -O2 -pthread
version: gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
with: PTHREADS NC4 Z JASPER
Compiled: by jure on bigone (x86_64-unknown-linux-gnu) Jun 21 2012 11:00:33
CDI library version : 1.5.5 of Jun 21 2012 11:00:29
CGRIBEX library version : 1.5.2 of May 11 2012 14:32:49
GRIB_API library version : 1.9.16
netCDF library version : 4.1.1 of Jun 9 2010 09:00:01 $
HDF5 library version : 1.8.3
SERVICE library version : 1.3.0 of Jun 21 2012 11:00:19
EXTRA library version : 1.3.0 of Jun 21 2012 11:00:17
IEG library version : 1.3.0 of Jun 21 2012 11:00:18
FILE library version : 1.8.0 of Jun 21 2012 11:00:17

What is wrong?

Jure


Replies (1)

RE: copy grib2 to netcdf - Added by Uwe Schulzweida almost 12 years ago

The u and v component of the wind are stored in one GRIB2 record in your file. Multiple fields in single grib records are not supported in CDO, yet. I will check whether we can implement this support in one of the next CDO releases.
Thanks for this example file!

Cheers,
Uwe

    (1-1/1)