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