...
Excerpt |
---|
|
For example in grib_get you may want to show all messages which have a level of 100, 150 or 200. The way to do this is to use the "/" (forward slash) character in the "where" clause (for the -w switch)% grib_get -w level=100/150/ 200... |
...
Step-by-step guide
For example in using grib_get, you may want to show all messages which have a level of 100, 150 or 200. The way to do this is to use the "/" (forward slash) character in the "where" clause (for the -w switch)
Code Block |
---|
% grib_get -w level=100/150/200 ... |
This can be combined with an "AND" condition (logical conjunction). So if I want to show all messages whose level is either 0 or 1 and whose type is "an":
Code Block |
---|
% grib_ls -w level=0/1,dataType=an ... |
This would be equivalent to the pseudo-code:
Code Block |
---|
|
if (dataType == "an" AND (level == 0 OR level == 1)) ... |
Note: To have even more control over selecting messages, you can use the grib_filter tool.
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","logic","grib_get","grib_ls","boolean-expression") and label in ("grib","grib_get","grib_ls","grib_filter") and type = "page" and space = "~usaUDOC" |
---|
labels | kb-how-to-article |
---|
|