Versions Compared

Key

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

...

Code Block
% grib_set -s packingType=grid_jpeg input.grib2 output.grib2
grib_set: jpc_enc.c:186: jpc_abstorelstepsize: Assertion `!((expn) & (~0x1f))' failed.
Aborted (core dumped)

This problem can also occur if you have an existing JPEG packed field and you wish to encode it with different values e.g. scaling all values up

Code Block
% grib_set -s scaleValuesBy=150 input.grib2 output.grib2


Solution

This is a problem in the Jasper library.  It seems to be related to the number of bits per value of the input field

...