Project

General

Profile

stream_gribapi.c | grib_get_double_array(...) failed: Functionality not enabled

Added by Evangelos Stamos almost 3 years ago

Hello,

I have installed cdo-1.9.10 from source in CentOS Linux release 7.9.2009 and after big effort I was able to link my ecCodes with it.
While I am able to open some grib2, I am not able to open any grib2 provided by [NCEP WAVE Model Forecasts](https://nomads.ncep.noaa.gov/cgi-bin/filter_gfswave.pl) at global 0p16 or 0p25 forecast.

When executing info or remapbil I am getting the following error

[root@vm676 [~]]# cdo -f grb2 remapbil,r360x180 gfswave.t12z.global.0p25.f014.grib2 output.grib2
ECCODES ERROR   :  JPEG support not enabled.
stream_gribapi.c at line 1503: grib_get_double_array(gh, "values", data, &dummy) failed: Functionality not enabled
[root@vm676 [~]]# cdo info gfswave.t12z.global.0p25.f014.grib2
    -1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter ID
ECCODES ERROR   :  JPEG support not enabled.
stream_gribapi.c at line 1503: grib_get_double_array(gh, "values", data, &dummy) failed: Functionality not enabled

However, I am able to read info from grib2 files of NCEP GFS Forecasts (0.25 degree grid)

[root@vm676 [~]]# cdo info gfs.t12z.pgrb2.0p25.f004
    -1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter ID
     1 : 2021-04-29 16:00:00      10  1038240       0 :     -20.910   -0.086736      26.210 : 2.2.0         
cdo    info: Processed 1038240 values from 1 variable over 1 timestep [0.16s 37MB].

I attach both grib2 files in any case they would be useful for issue investigation.

That is my cdo version along with libraries and system info.

[root@vm676 [~]]# cdo -V
Climate Data Operators version 1.9.10 (https://mpimet.mpg.de/cdo)
System: x86_64-pc-linux-gnu
CXX Compiler: g++ -std=gnu++11 -g -O2 -fopenmp -pthread
CXX version : g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
C Compiler: gcc -std=gnu99 -g -O2 -fopenmp -pthread -pthread
C version : gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
F77 Compiler: gfortran -g -O2
F77 version : GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Features: 1GB 2threads C++11 OpenMP3 Fortran PTHREADS SSE2
Libraries:
Filetypes: srv ext ieg grb1 grb2 
     CDI library version : 1.9.10
 cgribex library version : 1.9.5
 ecCodes library version : 2.21.0
    exse library version : 1.4.2
    FILE library version : 1.9.1

I would much appreciate your help, is this a bug or I am using wrong command ?
Or do I have to link some more packages ?
I think that grib_api is not more supported and it is now integrated in ecCodes.

Thank you

gfswave.t12z.global.0p25.f014.grib2 (422 KB) gfswave.t12z.global.0p25.f014.grib2 NCEP WAVE Model Forecast | 0p25 | NOT working
gfs.t12z.pgrb2.0p25.f004 (953 KB) gfs.t12z.pgrb2.0p25.f004 NCEP GFS Forecasts | 0p25 | working

Replies (1)

RE: stream_gribapi.c | grib_get_double_array(...) failed: Functionality not enabled - Added by Evangelos Stamos almost 3 years ago

Fixed , I apologise it's not an issue related to cdo but to ecCodes.

The problem was that OpenJPEG / Jasper were not installed properly.

After reinstalling both packets, ecCodes and cdo and link them it finally worked.
If anyone face in the future any similar issue I would am glad to help.

Some relative issues

    (1-1/1)