In this tutorial, we will find out how a can we convert GRIB to GeoTIFF file format. First of all the question is what is GRIB file and why anyone would convert the GRIB file in Geotiff format.
Convert GRIB to GeoTIFF
Before taking to conversion of GRIB and GeoTIFF, lets first understand what is GRIB and What is GeoTIFF.
GRIB (General Regularly-distributed Information in Binary) files are multidimensional files. These files are used to store Meteorological data. The data is store in image mosaic format. That measn all the raster bands ate mosaic together to store in one file. You may also look over details of GRIB Multi dimensional data.
Convert GRIB file in Geotiff using GDAL utility-
Here GDAL Utility (gdal_translate) is used . For using this utility you need to add GDAL in your system. please follow the given command
To check the presence of this library, you can type ogr2ogr in command prompt and get the following output.
Now follow the command to convert GRIB in geotiff.
–> gdal_translate -b 354 -a_srs EPSG:4326 GRIB_Filename.grb2 -of Gtiff’ Output_tiffname.geotiff
The options available in gdal_translate utility can be viewed by executing command gdal_translate on command prompt.
Here, in the command we have -a_srs to assign SRS (spatial reference system) , specify the GRIB file. The option -of ‘Gtiff’ shows the output file format.
Output in QGIS software
Please feel free to comment in given box for any help.