Imports a brick of raster ascii maps into a 'brick' object
Imports a brick of raster ascii maps into a 'brick' object
brick.decimal.formatter(file = NULL, file_prefix, formatter = "%04d", file_extension = ".asc", nlayers = 10, use.read.raster.from.url = FALSE, crs = NULL, start.from.zero = FALSE)
file |
fileneme of the 'brick' files containing the decimal formatter. It is |
file_prefix |
character string suffix name of the 'brick' files. |
formatter |
string value. Default is |
file_extension |
strinf value. Default is |
nlayers |
number of layers |
use.read.raster.from.url |
logical value. Default is |
crs |
coordinate system see |
start.from.zero |
logical value. Default is |
the output is returned as a RasterBrick-class
object
library(geotopbricks) library(raster) file <- system.file("doc/examples/snowthickness",package="geotopbricks") file <- paste(file,"SnowThickness0000L%04d.asc",sep="/") # nlayers=15 nlayers <- 6 ## Only 6 layers are read to minimize the elapsed time of the example!! b <- brick.decimal.formatter(file=file,nlayers=nlayers) nlayers(b) names(b)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.