Dump instructions to decode the input

Step-by-step guide

There is a "-D" option in the bufr_dump tool to generate instructions to read (decode) the input BUFR message.  Its argument can be one of:

  • -Dfilter  This generates the set of rules to be passed to the bufr_filter tool
  • -Dfortran This generates a Fortran 90 program
  • -Dpython  This generates a Python script
  • -DC       This generates a C program
  1. For compiled languages like C and Fortran, the user can then compile/link the generated program and run it to decode the input message. For filter and Python, the generated code can be used directly (either passed to bufr_filter or the Python interpreter)
  2. The user can then edit the generated code to tailor it to his/her own needs.

    Note: The generated code for bufr_filter only applies to a single BUFR message. The other languages support decoding of multiple BUFR messages in a file.

  3. Example

    This is an example of decoding BUFR synoptic surface observation (SYNOP) : synop.bufr