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:
-EfilterThis generates the set of rules to be passed to the bufr_filter tool-EfortranThis generates a Fortran 90 program-EpythonThis generates a Python script-ECThis generates a C program
- 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)
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.
Example
This is an example of BUFR synoptic surface observation (SYNOP): synop.bufr