Read GRIB2 with GDAL?

All other topics about postprocessing model data (GrADS and other software), about other numerical weather prediction software (including WRF-NMM and WRF-ARW discussion unrelated to UEMS/WRF EMS), and general meteorology talk go in this forum.
Post Reply
Posts: 77
Joined: Tue Sep 25, 2012 2:39 am

Read GRIB2 with GDAL?

Post by weatherc »

Anyone who have any working snippet how to read grib's with GDAL? Goal is to get out geotiff's as its lots easier/faster than fiddling with Grads and shapefiles....
Or is it possible to get ems_post to generate netcdf-files instead of gribs?

Tryed to convert ems_post generated grib2 to netcdf but it eneded in *** FATAL ERROR: rd_bitstream: n_bits is 26 ***
Posts: 4
Joined: Fri Aug 09, 2013 9:33 am

Re: Read GRIB2 with GDAL?

Post by Daniel »

Hi :)

Have you tried gdal_translate?

Code: Select all

gdal_translate -b 1 -a_srs EPSG:4326 icon-d2_germany_regular-lat-lon_single-level_2022033112_005_2d_t_2m.grib2 test.tif
Post Reply