rsaga.import.gdal: Import Grid Files to SAGA grid format using GDAL


These functions provide simple interfaces for reading and writing grids from/to ASCII grids and Rd files. Grids are stored in matrices, their headers in lists.


rsaga.import.gdal(in.grid, out.grid, env = rsaga.env(), ...)



file name of a grid in a format supported by GDAL


output SAGA grid file name; defaults to in.grid with the file extension being removed; file extension should not be specified, it defaults to .sgrd


RSAGA geoprocessing environment created by rsaga.env


additional arguments to be passed to rsaga.geoprocessor


The GDAL Raster Import module of SAGA imports grid data from various file formats using the Geospatial Data Abstraction Library (GDAL) by Frank Warmerdam. GDAL Versions are specific to SAGA versions:

More information is available at

If in.grid has more than one band (e.g. RGB GEOTIFF), then output grids with file names of the form in.grid_01.sgrd, in.grid_02.sgrd etc. are written, one for each band.

The following raster formats are currently supported. Last updated for SAGA GIS 2.2.3; for a list for a specific SAGA GIS version call"io_gdal","GDAL: Import Raster", env = rsaga.env(path="SAGA_Version_to_Test"))


Alexander Brenning (R interface), Olaf Conrad / Andre Ringeler (SAGA module), Frank Warmerdam (GDAL)


GDAL website:

See Also

read.ascii.grid,, read.sgrd, read.Rd.grid

Questions? Problems? Suggestions? or email at

All documentation is copyright its authors; we didn't write any of that.