Versions Compared

Key

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

...

Excerpt
hiddentrue

A BUFR message can be composed of several subsets. The number of subsets in a BUFR message is given by the key "numberOfSubsets" which is printed by the bufr_ls tool:

...

A BUFR message can be composed of several subsets. The number of subsets in a BUFR message is given by the key "numberOfSubsets" which is printed by the bufr_ls tool:

...

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

The following file "instructions1.filter" with bufr_filter instructions can be used to perform the extraction of several subsets a single subset from a BUFR message.

Code Block
languagedelphi
titleinstructions1.filter
linenumberstrue
set unpack=1;

set extractSubset=4;
set doExtractSubsets=1;
write;

...

In the next example we extract all the several subsets specifying an interval.

...

Code Block
languagebash
% bufr_filter -o outout1.bufr instructions1.filter in.bufr
% bufr_filter -o outout2.bufr instructions2.filter in.bufr

...

Content by Label
showLabelsfalse
max5
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
excludeCurrenttrue
cqllabel in ("kb-how-to-article","eccbufr-faqs","bufr","bufr_filter","subsets","split") and label = "bufr" and type = "page" and space = "UDOC"
labelskb-how-to-article

...