Versions Compared

Key

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

According to WMO 1.2.3.2:

A code table is a list of choices where only one of the choices can be selected at a given time. The selection is accomplished by coding the number of the desired entry in the appropriate place in the GRIB2 Section. A flag table, on the other hand, is a list of choices where any combination of the choices can be selected at a given time. The combination is accomplished by turning bits of a bit string on or off. Code and Flag tables are also categorised by the Section number in which the code or flag table is referred to.

This applies equally well to GRIB1 and also to BUFR.


For example if you do a grib_dump -O -t on a GRIB2 file, you will see some keys whose type is Code Table ("codetable") and Flag Table ("codeflag"):

...

You can query these keys (to decode the flags) as well as set them (to encode the flags).


Content by Label
showLabelsfalse
max5
spacesUDOC
showSpacefalse
sortmodified
reversetrue
typepage
excludeCurrenttrue
cqllabel = "kb-how-to-article" and label = "grib" and label = "keys" and type = "page" and space = "UDOC"
labelskb-how-to-article

...