Versions Compared

Key

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

The bitmap is an array of binary values. Its purpose is to indicate the presence or absence of data at each of the grid points. A value of '0' means data is missing and a '1' means data is present.
Note: The bitmap section is optional. If it is not present, it means every grid point has an associated value.

In order to conserve space, the bitmap is used to efficiently indicate those data points that actually appear in the Data Section.

Bitmap

0000
0110
0010

Encoded data






2.54.6


9.1

In the example shown above, we have 12 grid points of which 3 have actual 'real' values which are {2.5, 4.6, 9.1}.

...

When decoding, you can directly query the bitmap to discover missing data values. For an example see grib_iterator_bitmap


Note

The value of the "missingValue" key used to encode the data is not itself encoded in the GRIB.


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

...