Versions Compared

Key

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

...

  • Sections 0, 1 and 5 contain static metadata, mostly for message identification.
  • Section 2 is optional; if used, it may contain arbitrary data in any form wished for by the creator of the message (this is only advisable for local use).
  • Section 3 contains a sequence of so-called descriptors that define the form and contents of the BUFR data product.
  • Section 4 is a bit-stream containing the message's core data and meta-data values as laid out by Section 3

 Image Modified

The metadata (the headers) which describe the structure of the data are always available. Therefore the keys in these sections are available as soon as you get a message handle (e.g. via the Python function codes_bufr_new_from_file())
To access the data section, you need a special directive which instructs ecCodes to do the actual unpacking and decoding of all the data elements. This is done by setting the special key "unpack" to 1.

Here is an example of reading the header data of a BUFR message.
And here we have an example of decoding all the data (including the header).

Content by Label
showLabelsfalse
max5
spacesUDOC
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "bufr" and label = "bufr" and type = "page" and space = "UDOC"
labelsbufr

...

Page properties
hiddentrue


Related issues