...
ECMWF makes available a GRIB decoding library (GRIB-API) for the benefit of the WMO community. GRIB-API can be freely downloaded from here and the documentation can be found here. The GRIB-API provides a simplified access to GRIB2 headers through a set of virtual keys documented here
Info | ||
---|---|---|
There is a temporary test version of GRIB-API 1.16.0 with all UERRA changes installed on The new GRIB-API version 1.16.0 which can recognise all UERRA parameters is currently prepared for release after Monday, June 20. Until then please use the version 1.15.0 which is at least aware of UERRA products (productionStatusOfProcessedData=8/9). There is a newly available temporary 1.16.0 version installed on ECMWF's ecgate machine as per the information in the box below. | ||
Info | ||
| ||
be changed setting GRIB_DEFINITION_PATH environment variable
Default SAMPLES path is used: /var/tmp/emos/uerra/grib_api/share/grib_api/samples
SAMPLES path can be changed setting GRIB_SAMPLES_PATH environment variable already available on all ECMWF's premises (e.g. ecgate. To use it please follow the instructions below: Code Block | ). Its official public release will follow soon in following weeks. |
UERRA-GRIB2 checking tool
...
Examples of tigge_check usage:
Code Block |
---|
> module load grib_api/1.16.0
> load grib_api 1.16.0 Library (GRIB_API_MODE, GRIB_API_VERSION, GRIB_API_INCLUDE, GRIB_API_LIB, GRIB_API_INCLUDE_DIR, GRIB_API_LIB_DIR, EC_FFLAGS, EC_CFLAGS, EC_CXXFLAGS, EC_FLDFLAGS, EC_CLDFLAGS, EC_CXXLDFLAGS)
>
# example with one data value ranges warning and one encoding error
> tigge_check -u -w -v *.grib2
> 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.oper.2t.sfc.2.grib2 , field 1 [temperature_hl]: invalid height level 3 |
...