Versions Compared

Key

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

...

  1. grib_get fails if a key is not found.

    Code Block
    > grib_get -p nosuchkey ../data/tigge_pf_ecmwf.grib2
    ECCODES ERROR   :  Key/value not found
    



grib_get_data examples

  1. If you want to define your missing value=1111 and to print the string 'missing' in place of it


    Code Block
    > grib_get_data -m 1111:missing ../data/reduced_gaussian_model_level.grib2
    


  2. If you want to print the value of other keys with the data value list

    Code Block
    > grib_get_data -p centre,level,step ../data/reduced_gaussian_model_level.grib2
    


...