Learn R Programming

ENiRG (version 1.0.1)

import.egvs: Raster file importation

Description

This function allows to import raster files into raster maps layers supported in GRASS. Available formats are those provided by GDAL library (http://www.gdal.org/formats_list.html).

Usage

import.egvs(filenames, output.names)

Arguments

filenames
character string. Path to raster file to be imported.
output.names
character string. Name of output raster map that will be created in GRASS environment.

Value

A raster map layer will be uploaded into the opened GRASS environment.

Details

Datum and projection of source dataset must match projection of current GRASS location, otherwise a report error message can be generated.

References

http://grass.osgeo.org/grass64/manuals/r.in.gdal.html

See Also

list.maps, initGRASS

Examples

Run this code
## Not run: 
# # starting GRASS session
# initGRASS("/usr/bin/grass-7.0.0", home=tempdir())
# initGRASS("C:/GRASS", home=tempdir())
# 
# ## Path to file
# file1 <- paste(system.file(package = "ENiRG"), "/ext/tann.asc", sep="")
# 
# import.egvs(file1, "tann")
# 
# list.maps()
# 
# ## End(Not run)

Run the code above in your browser using DataLab