Versions Compared

Key

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

...

When converting to JPEG packing with the Jasper JasPer library, you get the above assertion:

...

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

Panel
bgColor#fff
Pick a decimal precision value that will avoid the assertion and preserves the required precision
  1. grib_set -s setDecimalPrecision=4,packingType=grid_jpeg input.grib2 output.grib2
  2. Check the statistics before and after
  3. grib_ls -n statistics input.grib2
  4. grib_ls -n statistics output.grib2
  5. Compare the results

...

Content by Label
showLabelsfalse
max5
spacesUDOC
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("grib","jpeg","jasper","packing") and label in ("grib","jpeg","packing") and label in ("encode","jpeg") and type = "page" and space = "UDOC"
labelsgrib jpeg packing jasper

...