You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Raster · Elevation & grid

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.

Type
Raster · Elevation & grid
Extension
.grd
Converter
Read & write
Coordinate system
Any (georeferenced)
Bands
1–N (multiband supported).

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.

Typical uses

  • Storing intermediate results of raster analysis in R.
  • Saving elevation models and climate surfaces produced by statistical workflows.
  • Keeping multi-layer raster stacks with layer names in a single dataset.
  • Passing R results to GIS software after conversion to a more common raster format.
Files: A .grd text header plus the .gri binary data file with the same name; upload both together.

Sample RRaster files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

Preview of the sample data: Saint Helena Sentinel-2 multispectral bands st-helena-sentinel2-bands-rraster.zip

Sentinel-2 multispectral

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).

  • 6 bands · UInt16
  • 906 × 762 px
  • 20 m
  • EPSG:32730
  • 3.2 MB

Inside: README.txt, st-helena-sentinel2-bands.grd, st-helena-sentinel2-bands.gri

Contains modified Copernicus Sentinel data 2024

Frequently asked questions

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.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.