Versions Compared

Key

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

How to change the bits per value in a GRIB message?

Step-by-step guide

This can be done by using the grib_set command.

...

Code Block
% grib_set -r -s bitsPerValue=17 in.grib out.grib


In these commands, we first decode the data values, then change the bitsPerValue key and then repack.

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

...