Excerpt |
---|
|
One can add several 'modifiers' to a key in square brackets to control number of columns, separator string and format |
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']
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
[latitude!11%.5f','] -> combination of the above |
Note: to print all the values on one line, set the number of columns to 0 (zero).
Related articles
Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | ~usa |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("kb-how-to-article","eccodes-faqs","grib_filter","bufr_filter","bufr","grib","formatting") and type = "page" and space = "UDOC" |
---|
labels | kb-how-to-article |
---|
|