Project

General

Profile

Trying convert grb2 to nc

Added by Guilherme Martins over 8 years ago

Hi all,

I'm trying to convert the z850.l.gdas.201103.grb2 file to netcdf. This file it's available at:

ftp://nomads.ncdc.noaa.gov/CFSR/HP_time_series/201103/

But when I type:

cdo -f nc copy z850.l.gdas.201103.grb2 geo.nc

I receive this message:

cdo showformat (Warning): Subtypes are unsupported, the processing results are possibly wrong!

I don't have ideia about the warning. Can anyone give me any tip? I google this message but I didn't found anything.

My CDO installation:

Climate Data Operators version 1.7.1 (http://mpimet.mpg.de/cdo)
Compiled: by root on curupira (x86_64-unknown-linux-gnu) Apr 7 2016 22:44:43
Compiler: gcc -std=gnu99 -g -O2 -fopenmp
version: gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
Features: DATA PTHREADS OpenMP HDF5 NC4/HDF5 Z PROJ.4 SSE2
Libraries: HDF5/1.8.13 proj/4.92
Filetypes: srv ext ieg grb grb2 nc nc2 nc4 nc4c
CDI library version : 1.7.1 of Apr 7 2016 22:43:54
CGRIBEX library version : 1.7.4 of Feb 19 2016 11:03:41
GRIB_API library version : 1.13.0
NetCDF library version : 4.3.3.1 of Dec 17 2015 14:54:06 $
HDF5 library version : 1.8.13
SERVICE library version : 1.4.0 of Apr 7 2016 22:43:41
EXTRA library version : 1.4.0 of Apr 7 2016 22:43:37
IEG library version : 1.4.0 of Apr 7 2016 22:43:40
FILE library version : 1.8.2 of Apr 7 2016 22:43:37

Thanks,

Guilherme Martins.


Replies (3)

RE: Trying convert grb2 to nc - Added by Ralf Mueller over 8 years ago

AFIAK there is no one2one relation between grib2 and netcdf. Many users seemed to be happy with an ncl based tool: https://www.ncl.ucar.edu/Document/Tools/ncl_convert2nc.shtml

hth
ralf

RE: Trying convert grb2 to nc - Added by Guilherme Martins over 8 years ago

Thanks for answering.

Guilherme.

RE: Trying convert grb2 to nc - Added by Uwe Schulzweida over 8 years ago

You can ignore this warning message. The check was implemented wrong. This problem will be fixed in the next CDO release.

    (1-3/3)