Project

General

Profile

can't convert netcdf file to grib2

Added by S. Kirby about 12 years ago

I just installed CDO v1.5.4, and ran:

cdo -f grb2 copy file.nc file.grb2

but it returns:

cdo copy: Open failed on >file.nc<
Unsupported file type (library support not compiled in)

I did an ncdump on file.nc and it looks fine. This is netcdf v4.1.2.

Below is the cdo description::

$ cdo -V
Climate Data Operators version 1.5.4 (http://code.zmaw.de/projects/cdo)
Compiler: gcc -std=gnu99 -g -O2 -pthread
version: gcc (GCC) 4.5.0
with: PTHREADS Z
Compiled: by skirby on neptune.aw-idvrn.mil (x86_64-unknown-linux-gnu) Mar 21 2012 15:27:20
CDI library version : 1.5.4 of Mar 21 2012 15:27:15
CGRIBEX library version : 1.5.1 of Aug 29 2011 20:30:27
SERVICE library version : 1.3.0 of Mar 21 2012 15:27:08
EXTRA library version : 1.3.0 of Mar 21 2012 15:27:05
IEG library version : 1.3.0 of Mar 21 2012 15:27:08
FILE library version : 1.7.1 of Mar 21 2012 15:27:05

Thanks for any ideas.


Replies (1)

RE: can't convert netcdf file to grib2 - Added by Ralf Mueller about 12 years ago

netcdf support is not compiled in. It should look like:

Climate Data Operators version 1.5.4rc5 (http://code.zmaw.de/projects/cdo)
Compiler: gcc -std=gnu99 -g -Wall -O2 -fopenmp -DWITH_DATA 
 version: gcc (GCC) 4.6.2 20111223 (prerelease)
    with: PTHREADS OpenMP NC4 OPeNDAP SZ Z JASPER PROJ.4
Compiled: by ram on thingol (x86_64-unknown-linux-gnu) Jan 10 2012 09:34:02
     CDI library version : 1.5.4 of Jan 10 2012 09:33:49
 CGRIBEX library version : 1.5.1 of Aug 29 2011 20:30:27
GRIB_API library version : 1.9.9
  netCDF library version : 4.1.2 of Jun 10 2011 11:59:26 $
    HDF5 library version : 1.8.7
 SERVICE library version : 1.3.0 of Jan 10 2012 09:33:49
   EXTRA library version : 1.3.0 of Jan 10 2012 09:33:49
     IEG library version : 1.3.0 of Jan 10 2012 09:33:49
    FILE library version : 1.7.1 of Jan 10 2012 09:33:49

    (1-1/1)