Versions Compared

Key

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

...

tigge_check options
Code Block
$ tigge_check
tigge_check [options] grib_file grib_file ...
   -l: check local area model fields
   -v: check value ranges
   -w: warnings are treated as errors
   -g: write good gribs
   -b: write bad  gribs
   -z: return 0 to calling shell
   -s: check s2s fields
   -r: check s2s reforecast fields
   -u: check uerra fields

...

example with one data value ranges warning and one encoding error
> tigge_check -u -w -v -z *.grib2
> warning warning: an.enda.tcw.sfc.0.fp.grib2, field 1 [total_column_water_sfc]: total_column_water_sfc maximum value 31.5638 is not in [50,150]
  => [31.5638,150]
> fc fc.oper.2t.sfc.2.grib2 , field 1 [temperature_hl]: invalid height level 3

Checking S2S reforecast data

> tigge_check -r *.grib2

Performance tip to speed up checking big files 

...

grib_check.py options
Code Block
> python $BIN/grib_check.py         
usage: grib_check.py [-h] [-v VERBOSITY] [-w] [-his] [-l [LISTING]]
                     [inp_file [inp_file ...]]

positional arguments:
  inp_file              enter input file name(s)

optional arguments:
  -h, --help            show this help message and exit
  -v VERBOSITY, --verbosity VERBOSITY
                        increase output verbosity [0-2]
  -w, --warning         warnings are treated as errors..
  -his, --history       add value ranges history, if exists, to listing..
  -l [LISTING], --listing [LISTING]
                        list defined parameters (search if argument provided!)
Checking LC-WVF data
Code Block
> $BIN/grib_check.py lw.grib2
> field 223(Mean wave direction) key: dataRepresentationTemplateNumber expected: <0..2> encoded: 40
> field 224(10 metre U wind component) key: dataRepresentationTemplateNumber expected: <0..2> encoded: 40
Number of error(s) found: 2

List  defined limits for a parameter

Code Block
> python /home/ma/emos/def/lcwfv/bin/grib_check.py -l 131
131   [U component of wind]   [min <-250, 5> max <1, 250>] (default) 
                              [min <-150, -10> max <10, 150>] (levtype:pv) 
                              [min <-250, 5> max <-250, 250>] (class:s2, origin:rksl)

...