[GIS] Opening .grd from R in QGIS

formatqgisrraster

How to open .grd raster layers in QGIS (or any other GIS)?

I have looked through previous questions, but not found any answer. My raster layers are outputs from running bfastSpatial in R and I can't seem to open them in QGIS. I have also been unsuccessful in converting the format to .tif so I am hoping there is some other option.

Best Answer

There is no gdal driver for the native format of the raster package (gri + grd), that is why you cannot directly open it in QGIS. One workaround to open data in QGIS without duplicating them is to create an additional header file using the hdr() function of the raster package.

library(raster)

b <- brick('/path/to/file.grd')
hdr(b, format = 'ENVI')

Point to the .gri file when opening with QGIS

Related Question