[gdal-dev] GDAL on Windows/Mac : issue decoding GRIB2 files compressed with the JPEG2000 option

Edouard, Sandrine (EC) sandrine.edouard at canada.ca
Thu May 20 08:21:25 PDT 2021


Dear GDAL Users list members,

We discovered that on Windows and Mac, some versions of GDAL do not properly decode GRIB2 files if the data is compressed with the JPEG2000 option.

Sample of impacted data: https://collaboration.cmc.ec.gc.ca/cmc/cmos/gdal_Jpeg2000/CMC_RDPA_APCP-024-0700cutoff_SFC_0_ps10km_2021041106_000.grib2 .

When GDAL decodes the data, the values are orders of magnitude off (values around 10^4 instead of 10^2 for the APCP parameter, precipitation analysis). The problem does not happen on the Linux platform neither when using other tools to read the data (such as wgrib2).

Have there been any changes to the JPEG2000 driver (JasPer) of GDAL on Windows and Mac in a previous update ?

Ref: https://github.com/OSGeo/gdal/issues/3860

Thanks a lot.

Sandrine Edouard
National coordinator, Open Data Access
Canadian Centre for Meteorological and Environmental Prediction Operations
Environment and Climate Change Canada, Government of Canada

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210520/ee5bbabf/attachment.html>


More information about the gdal-dev mailing list