Versions Compared

Key

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

...

Excerpt
hiddentrue

One can add several 'modifiers' to a key in square brackets to control number of columns, separator string and format

grib_filter/bufr_filter: How do I control the format of array printing?

Step-by-step guide

One can add several 'modifiers' to a key in square brackets to control number of columns, separator string and format:

Code Block
[key!c%F'S']

...


Info

c

...

->

...

number

...

of

...

columns

...

F

...

->

...

C-style

...

formatting

...

S

...

->

...

separator

...

string

Examples:

Code Block
[latitude!11] -> print array using 11 columns
[latitude','] -> print array with entries separated by a comma
[latitude%.5f] -> print real numbers with 5 decimal places


Note: to print all the values on one line, set the number of columns to 0 (zero).


Content by Label
showLabelsfalse
max5
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "UDOC"
labelskb-how-to-article

...