Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
% bufr_ls synop_multi_subset.bufr
centre   masterTablesVersionNumber   localTablesVersionNumber   numberOfSubsets
enmi     14                          0                          12


Starting from release version 0.13.0 a A given number of subsets can be extracted and saved in a new message. This is based on the use of the following keys:

...

To explain the use of these keys the following example using the bufr_filter is commentedprovided, but we highlight the fact that the keys can be set using the Fortran and python Python interfaces as well and no special functions have been implemented in the bufr_filter for this feature.

...

First of all the data section has to be decoded with the instruction at line 1. Setting the key extractSubset will express specify the subset that is going to be extracted. In this example in line 3 we ask ecCodes to extract the 4th subset from the input file. The extraction is executed when the key doExtractSubset is set to 1 and the message containing only the 4th subset is written to the output file with the write instruction in line 5.

...