Versions Compared

Key

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

Problem

Why am I not able to set the missing value in the GRIB message?

Solution

Missing values cannot be encoded in a GRIB message. The GRIB format does keep track of missing values but through the use of a bitmap  It does not allow the specification of a missing value. Setting the missing value is a feature that can be used only when encoding the data values stored in a GRIB message. This of course means that is the responsibility of the user to know what missing value is meaningful to the data. A default value of 9999 is set for the missing value in the library (not the GRIB message!). That means that when retrieving the values from a message without having set the missing value key, all missing values in the data will be replaced with the default value of 9999.

Panel
bgColor#fff
  1. A small example on the use of the missing value during encoding can be found here: grib_set_bitmap.
  2. During decoding it is advisable to query the bitmap directly to discover missing data values. See example here: grib_iterator_bitmap

Content by Label
showLabelsfalse
max5
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-troubleshooting-article" and type = "page" and space = "~usa"
labelskb-troubleshooting-article

...

Page properties
hiddentrue


Related issues