...
| Excerpt |
|---|
|
The tools never change the input file(s). You have to create a new one without the offending message and then do a rename. E.g. |
How do I delete a message from a file?
Step-by-step guide
The tools never change the input file(s). You have to create a new one without the offending message and then do a rename. E.g.
| Code Block |
|---|
|
# Delete the fifth message in the file orig.grib (count = 5)
% grib_copy -w "count!=5" orig.grib temp
% mv temp orig.grib |
This can also be done using the grib_filter (or bufr_filter) where a more complex condition can be entered.
Related articles
| Content by Label |
|---|
| showLabels | false |
|---|
| max | 5 |
|---|
| spaces | ~usa |
|---|
| showSpace | false |
|---|
| sort | modified |
|---|
| reverse | true |
|---|
| type | page |
|---|
| cql | label = "kb-how-to-article" and type = "page" and space = "UDOC" |
|---|
| labels | kb-how-to-article |
|---|
|
...