Excerpt |
---|
|
The "count" key is the message number in a given file whereas "countTotal" is the message number in a set of files. The former gets reset for every input file on the command line but the latter keeps on increasing. |
The "count" key is the message number in a given file whereas "countTotal" is the message number in a set of files. The former gets reset for every input file on the command line but the latter keeps on increasing.
Here is an example:
Code Block |
---|
% grib_count -v file1 file2
1 file1
5 file2
6 total
% grib_ls -p count,countTotal,shortName file1 file2
file1
count countTotal shortName
1 1 t
1 of 1 messages in file1
file2
1 2 msl
2 3 tcc
3 4 tcw
4 5 str
5 6 2t
5 of 5 messages in file2
6 of 6 total messages in 2 files |
So the count for the 1st message of the 2nd file is 1 (reset) but countTotal is 2.
Related articles
Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | ~usa |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("kb-information-article","eccodes-faqs","grib_count","grib","count") and type = "page" and space = "UDOC" |
---|
labels | kb-how-to-article |
---|
|