rasterToMemory {SpaDES.core} | R Documentation |
Read raster to memory
Description
Wrapper to the raster
function, that creates the raster object in
memory, even if it was read in from file. There is the default method which is
just a pass through, so this can be safely used on large complex objects,
recursively, e.g., a simList
.
Usage
rasterToMemory(x, ...)
## S4 method for signature 'list'
rasterToMemory(x, ...)
## S4 method for signature 'character'
rasterToMemory(x, ...)
## S4 method for signature 'ANY'
rasterToMemory(x, ...)
## S4 method for signature 'simList'
rasterToMemory(x, ...)
Arguments
x |
An object passed directly to the function raster (e.g., character string of a filename). |
... |
Additional arguments to |
Value
A raster object whose values are stored in memory.
Author(s)
Eliot McIntire and Alex Chubaty
See Also
raster()
, terra::rast()
.
[Package SpaDES.core version 2.1.0 Index]