Missing szlib package when converting GRIB to NC
Added by Henrique Goulart almost 2 years ago
Hi,
I'm trying to convert a .grb file to .nc file.
The cdo version I have is:
Climate Data Operators version 1.9.10 (https://mpimet.mpg.de/cdo)
System: x86_64-pc-linux-gnu
CXX Compiler: g++ -g -O2 -fopenmp -pthread
CXX version : g++ (GCC) 8.2.0
C Compiler: gcc -g -O2 -fopenmp -pthread -pthread
C version : gcc (GCC) 8.2.0
F77 Compiler: gfortran -g -O2
F77 version : GNU Fortran (GCC) 8.2.0
Features: 251GB 64threads C++14 OpenMP45 Fortran PTHREADS HDF5 NC4/HDF5/threadsafe OPeNDAP UDUNITS2 SSE2
Libraries: HDF5/1.10.5
Filetypes: srv ext ieg grb1 grb2 nc1 nc2 nc4 nc4c nc5
CDI library version : 1.9.10
cgribex library version : 1.9.5
ecCodes library version : 2.21.0
NetCDF library version : 4.7.3 of Jan 31 2020 12:07:41 $
hdf5 library version : 1.10.5 threadsafe
exse library version : 1.4.2
FILE library version : 1.9.1
Whenever I try:
cdo -r -f nc selvar,var182 input.grb test.nc
it returns the following error:
Warning (gribUnzip): Decompression disabled, szlib not available!
Error (grbUnzipRecord): Decompression problem!
After some digging I found out the szlib is not mainted anymore, and that ECCODES should work instead. Is there a way of specifying the library to decompress? I'd prefer to avoid downloading szlib and working with the packages I already have (ECCODES, cfgrib, etc) as I work on an external cluster without admin rights.
Replies (3)
RE: Missing szlib package when converting GRIB to NC - Added by Ralf Mueller almost 2 years ago
hi!
try adding `--eccodes` to the options
RE: Missing szlib package when converting GRIB to NC - Added by Henrique Goulart almost 2 years ago
Hi Ralf,
In the meantime I managed to update CDO with the ICT support, and it eventually worked without any further work. So it was a version issue apparently. However, I'll keep this solution in case it shows up again.
Thank you!
RE: Missing szlib package when converting GRIB to NC - Added by Ralf Mueller almost 2 years ago
thx for posting the solution of the issue