Grib2 to Grib1
Added by Guilherme Martins over 10 years ago
Hi all,
I'm trying to converte the file below of grib2 to grib1.
cdo -f grb copy fnl_20140731_12_00.grib2 tmp.grb
When I type the command above, I receive the follow:
Warning (cgribexDefParam) : Can't convert GRIB2 parameter ID (0.3.0) to GRIB1, set to 0.3!
And when try use the CDO, I got the message, like this:
cdo pardes tmp.grb or cdo infon tmp.grb
Appear:
Warning (cgribexScanTimestep2) : Record 262 (id=1.1 lev1=0 lev2=0) timestep 2: Parameter not defined at timestep 1!
cdo pardes: Open failed on >tmp.grb<
Unsupported file structure
The is file in attachment (fnl_20140731_12_00.grib2).
My CDO instalation:
Climate Data Operators version 1.7.0 (http://mpimet.mpg.de/cdo)
Compiled: by root on curupira (x86_64-unknown-linux-gnu) Nov 30 2015 10:04:19
Compiler: gcc -std=gnu99 -g -O2 -fopenmp
version: gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
Features: DATA PTHREADS OpenMP HDF5 NC4/HDF5 Z SSE2
Libraries: HDF5/1.8.13
Filetypes: srv ext ieg grb grb2 nc nc2 nc4 nc4c
CDI library version : 1.7.0 of Nov 30 2015 10:03:25
CGRIBEX library version : 1.7.3 of Sep 14 2015 10:58:44
GRIB_API library version : 1.13.0
netCDF library version : 4.3.3.1 of Nov 30 2015 09:58:54 $
HDF5 library version : 1.8.13
SERVICE library version : 1.4.0 of Nov 30 2015 10:03:08
EXTRA library version : 1.4.0 of Nov 30 2015 10:03:03
IEG library version : 1.4.0 of Nov 30 2015 10:03:06
FILE library version : 1.8.2 of Nov 30 2015 10:03:03
Can anyone help me? Any help is very apreciated.
Thanks,
Guilherme.
Replies (2)
RE: Grib2 to Grib1 - Added by Ralf Mueller over 10 years ago
converting grib2 to grib1 not possible in general. grib2 uses parameter triplets, whereas grib1 used code numbers. You should check the tools provided by the grib_api library to do this.
hth
ralf
RE: Grib2 to Grib1 - Added by Guilherme Martins over 10 years ago
Thanks Ralf.
I'll try cnvgrib.
Guilherme.