In this version of ecCodes some limited encoding features of the data section are available. An example showing how to encode data from a text file is provided here.
The only function needed to encode BUFR data is codes_set which is provided in all the available languages and in the bufr_filter.
...