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 | ||||
---|---|---|---|---|
| ||||
# 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; |
...
We are aware that this are strong limitations and we are working to implement these features as soon as possible in the next 0.13.0 realeaserelease.