Description Usage Arguments Details Value References See Also Examples
This function reads ESRI asciigrid files and stores the information in a rasclassRaster
object.
1 | readRaster(path, asInteger = FALSE)
|
path |
A local path to the input ascii raster file. |
asInteger |
An optional logical argument. If set TRUE, the input data values will be rounded and stored as integers. |
The information from the header of the ESRI asciigrid raster (.asc file extention) is stored in specific slots of the rasclassRaster object. The gridcell values are stored in a numeric vector. The rows of the raster grid are sequencially appended to that vector.
The optional argument allows to load data as integer to reduce memory requirements of the rasclassRaster object.
A rasclassRaster
object.
ESRI ASCII raster format definition.
rasclass-package
,
rasclass-class
,
rasclassRaster-class
,
readRasterFolder
,
setRasclassData
,
1 2 3 4 | ## Not run:
myraster <- readRaster(path = "mypath", asInteger = FALSE)
image(myraster)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.