# RRaster — R Raster (GRD/GRI)

> RRaster (R Raster (GRD/GRI)): Two-file raster format of the R raster package, pairing a text .grd header with a binary .gri data file. Specs, software and free sample files; convert RRaster to 50 formats online.

- Page: https://beta.mygeodata.cloud/formats/rraster



## What is a RRaster file?

R Raster is the native file format of the raster package for the R statistical environment. It is also readable and writable from the terra package, which succeeded raster. A dataset always consists of two files with the same base name. The .grd file is a plain-text, INI-style header with sections such as [general], [georeference] and [data]. It records the grid dimensions, extent, cell size, data type, band count, layer names and an optional coordinate reference system definition. The .gri file holds the raw, uncompressed pixel values.

The format is used mainly to store intermediate and final results of spatial analysis in R, such as elevation models, climate surfaces and multi-layer stacks. It supports multiple bands and integer and floating-point cell types, and it records a no-data value. Because the data is not compressed, files can be large. The two files must always be kept together. Support outside the R ecosystem is limited compared with general-purpose formats such as GeoTIFF.

R Raster files usually come from analysts and researchers who process spatial data in R, and they are often exchanged as elevation models, climate grids or multi-layer stacks. The dataset is two files, and the .grd header is needed to interpret the raw values in the .gri file. Send both files together, keep the base names identical, and check the CRS and no-data value after import.

### Technical details

| | |
|---|---|
| Full name | R Raster (GRD/GRI) |
| Data type | Raster · Elevation & grid |
| File extension | .grd |
| Files | Several files: .grd and .gri |
| Media type | — |
| Bands | 1–N (multiband supported). |
| Pixel types | 8/16/32-bit integer, 32/64-bit float |
| Compression | None (raw binary) |
| Coordinate system | Any (georeferenced) |
| Converter support | Read & write |
| Typical software | R, terra, GDAL/OGR, QGIS |
| Specification | https://cran.r-project.org/package=raster |

### Specifications & references

- https://cran.r-project.org/package=raster
- https://gdal.org/en/stable/drivers/raster/rraster.html

### Sample RRaster files — free download

- [Sentinel-2 multispectral](https://beta.mygeodata.cloud/static/landing/samples/v1/rraster/st-helena-sentinel2-bands-rraster.zip) — Six Sentinel-2 L2A surface-reflectance bands of Saint Helena (B02 blue, B03 green, B04 red, B08 near infrared, B11 and B12 shortwave infrared) at 20 m, UInt16, reflectance = DN / 10000. R raster (.grd + .gri). (3.2 MB, EPSG:32730)

### Convert RRaster to other formats

- [RRaster to TIF](https://beta.mygeodata.cloud/converter/rraster-to-tif)
- [RRaster to HFA](https://beta.mygeodata.cloud/converter/rraster-to-hfa)
- [RRaster to JPG](https://beta.mygeodata.cloud/converter/rraster-to-jpg)
- [RRaster to JP2](https://beta.mygeodata.cloud/converter/rraster-to-jp2)
- [RRaster to KMZ raster](https://beta.mygeodata.cloud/converter/rraster-to-kmz-raster)
- [RRaster to MBTiles raster](https://beta.mygeodata.cloud/converter/rraster-to-mbtiles-raster)
- [RRaster to BIL](https://beta.mygeodata.cloud/converter/rraster-to-bil)
- [RRaster to DEM](https://beta.mygeodata.cloud/converter/rraster-to-dem)
- [RRaster to GeoPDF raster](https://beta.mygeodata.cloud/converter/rraster-to-geopdf-raster)
- [RRaster to GRD](https://beta.mygeodata.cloud/converter/rraster-to-grd)
- [RRaster to XYZ](https://beta.mygeodata.cloud/converter/rraster-to-xyz)
- [RRaster to PNG](https://beta.mygeodata.cloud/converter/rraster-to-png)
- [RRaster to AAIGrid](https://beta.mygeodata.cloud/converter/rraster-to-aaigrid)
- [RRaster to GPKG raster](https://beta.mygeodata.cloud/converter/rraster-to-gpkg-raster)
- [RRaster to ENVI](https://beta.mygeodata.cloud/converter/rraster-to-envi)
- [RRaster to GIF](https://beta.mygeodata.cloud/converter/rraster-to-gif)
- [RRaster to netCDF raster](https://beta.mygeodata.cloud/converter/rraster-to-netcdf-raster)
- [RRaster to BMP](https://beta.mygeodata.cloud/converter/rraster-to-bmp)

## Frequently asked questions

### Why is my R Raster file so large?

The .gri file stores raw, uncompressed pixel values, so size depends on grid dimensions, band count and cell type. Converting to a compressed format such as GeoTIFF usually reduces file size.

### Can I read the .grd file in a text editor?

Yes, the .grd file is a plain-text, INI-style header. It lists the grid size, extent, cell size, data type, band count, layer names and any CRS definition. The pixel values themselves are in the binary .gri file and cannot be read as text.

### How does R Raster differ from GeoTIFF?

Both can hold georeferenced multiband rasters, but R Raster is mainly used within the R ecosystem and is stored as two uncompressed files. GeoTIFF is a single file with wider software support and optional compression, so it is better suited for sharing.

### What is a RRaster file?

R Raster is the native file format of the raster package for the R statistical environment. It is also readable and writable from the terra package, which succeeded raster. A dataset always consists of two files with the same base name. The .grd file is a plain-text, INI-style header with sections such as [general], [georeference] and [data]. It records the grid dimensions, extent, cell size, data type, band count, layer names and an optional coordinate reference system definition. The .gri file holds the raw, uncompressed pixel values.

The format is used mainly to store intermediate and final results of spatial analysis in R, such as elevation models, climate surfaces and multi-layer stacks. It supports multiple bands and integer and floating-point cell types, and it records a no-data value. Because the data is not compressed, files can be large. The two files must always be kept together. Support outside the R ecosystem is limited compared with general-purpose formats such as GeoTIFF.

### How do I open a RRaster file?

RRaster files can be opened in R, terra, GDAL/OGR and QGIS. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert RRaster to?

Popular conversions are TIF, HFA, JPG, JP2, KMZ raster and MBTiles raster. In total the Converter writes RRaster data to 50 formats.

### How do I create a RRaster file?

Convert existing data to RRaster — for example from HFA, JPG, TIF, BIL and DEM. Upload the file, choose RRaster as output and download the result.

### Which files belong to a RRaster dataset?

A RRaster dataset needs .grd and .gri. A .grd text header plus the .gri binary data file with the same name; upload both together.

