Step-by-step guide

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

  • -Efilter  This generates the set of rules to be passed to the bufr_filter tool
  • -Efortran This generates a Fortran 90 program
  • -Epython  This generates a Python script
  • -EC       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 reproduce 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 encoding of multiple BUFR messages in a file.

  3. Example

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