Versions Compared

Key

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

...

I get an error when decoding a GRIB2 file that has been encoded using JPEG compression:

Code Block
% grib_get_data input.grib2
ECCODES ERROR : JPEG support not enabled.
ECCODES ERROR : unable to get 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 CMake will detect at build time if either the Jasper or the OpenJPEG libraries are installinginstalled, 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.

...