Versions Compared

Key

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

...

Let's say you do not care about the GRIB data values (and its bitmap) and only want to keep the meta-data, for example when preparing a sample GRIB file (Also see Can I use my own GRIB/BUFR sample files - ecCodes GRIB and BUFR FAQ)

This can be done by using the "-d" option of grib_set as well as the key "bitmapPresent" :

...

Here we set all the field values to zero (-d0) in effect making it a constant field. Also if the input had a bitmap, it will be removed.

Now check the sizes of the two files; in.grib should be much larger than out.grib.

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

...