Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Confirmed.

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.

...

Code Block
languagebash
titlefilter_instructions_file
# unpack data section
set unpack=1;

# print value of airTemperature
print "airTemperature=[airTemperature]";

# set new value for airTemperature
set airTemperature=299.5;
 
# print new value of airTemperature 
print "airTemperature=[airTemperature]";

# pack data section
set pack=1;

# write BUFR message on output file
write;

...