grib2dec is a C/C++ library to parse files in grib2 format.
-
For now, complex packing and complex packing with spatial differencing data representations are implemented.
-
Spatial filter capability : fetch data from a subregion
-
C and C++ interfaces
Because I was stuck with g2clib, the C library to decode grib2, that didn't work. I hope this library will be easy to extand when needed.
-
Compile library and demo program with
cmake && make
. Install it withmake install
. -
Library usage exemple: see apps/grib2dec.cpp
-
demo program : run
./apps/grib2dec
for usage help.
-
grib2 format documentation from noaa : https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/
-
NOAA winds download: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl (select "10m above ground", and UGRD and VGRD variables).
-
Files Usage help for virtual-regatta : http://www.tecepe.com.br/wiki/index.php?title=NOAAWinds