Versions Compared

Key

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

...

Excerpt
hiddentrue

You have to use the "by rank" syntax i.e. "#n#key". For example using the bufr_filter rules

How can I set keys for a subset?

Step-by-step guide

You have to use the "by rank" syntax i.e. "#n#key". For example using the bufr_filter rules:

Code Block
set #4#airTemperature = 3283.1495;

This sets the 4th instance of the key "airTemperature" to

...

283.

...

95 K.

Note

Note: Although you can use the "by condition" syntax for getting values of keys, this method cannot be used for setting such keys i.e. The following will not work:

Code Block
languagebash
# Does not work
set /subsetNumber=4/airTemperature = 

...

283.

...

95; ## Error



Also see Setting keys by rank.


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

...