Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
% grib_get_data input.grib2

ECCODES ERROR : JPEG support not enabled.
ECCODES ERROR : ecCodes:unable cannotto decodeget values as double array (Functionality not enabled)
ECCODES ERROR : Functionality not enabled

Solution

You need to make sure that you have compiled ecCodes with support for JPEG decoding. cmake will detect at build time if either the Jasper or the OpenJPEG libraries are installing, including the headers. If that is the case the support will be built in. If you have not compiled the package yourself and you are using a binary package then you must check with the distributors how the library has been compiled. For all we know, most binary packages offered by conda or major Linux distributions do come with JPEG support.

Panel
bgColor#fff
titleInstalling dependencies in a Centos8 Linux distribution

For example these are the required packages for a CentosOS 8 Linux distribution

For OpenJPEG

Code Block
[root@3c2158284b2a /]# rpm -qa | grep jpeg  
openjpeg2-tools-2.3.0-8.el8.x86_64
openjpeg2-2.3.0-8.el8.x86_64
openjpeg2-devel-2.3.0-8.el8.x86_64



For Jasper

Code Block
[root@3c2158284b2a /]# rpm -qa | grep jasper
jasper-devel-2.0.14-4.el8.x86_64
jasper-libs-2.0.14-4.el8.x86_64
[root@3c2158284b2a /]# 

If not already installed, you get them with the following procedure

Code Block
[root@3c2158284b2a /]# yum install openjpeg2-tools openjpeg2-devel openjpeg2
[root@3c2158284b2a /]# yum install jasper-devel jasper-libs


...