View source: R/raster_to_mapset.R
raster_to_mapset | R Documentation |
GRASS can only deal with raster and vector data in a GRASS mapset. This function takes external rasters and imports them into the current GRASS mapset.
raster_to_mapset(
rasters,
as_integer = rep(FALSE, length(rasters)),
overwrite = FALSE,
max_memory = 300,
...
)
rasters |
A character vector of filenames of rasters to import. |
as_integer |
A logical vector indicating whether each raster should be imported strictly in integer format. Defaults to |
overwrite |
A logical indicating whether the overwrite flag should be used. If |
max_memory |
Max memory used in memory swap mode (MB). Defaults to |
... |
Additional arguments to |
A vector of raster layer names in the GRASS mapset.
# Will only run if a GRASS session is initialised
if(check_running()){
dem <- system.file("extdata", "dem.tif", package = "rdwplus")
raster_to_mapset(dem)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.