Versions Compared

Key

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

...

To convert multi-field GRIB messages into single-field, you can use the grib_copy command.
For example here we have a multi-field GRIB2 file with 30 messages some of which contain several fields. The grib_copy command creates a new file in which every message has a single field:

Code Block
% grib_copy multi.grib2 single.grib2

% grib_count multi.grib2
30
% grib_count single.grib2
56

...

Content by Label
showLabelsfalse
max5
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
excludeCurrenttrue
cqllabel in ("kb-how-to-article","eccodes-faqs","grib","grib_count",multi-field") and label = "multi-field" ) and type = "page" and space = "UDOC"
labelskb-how-to-article

...