make_raster | R Documentation |
Convenience function to make a RasterStack
make_raster(x, ...)
x |
Vector or list of file paths |
... |
Further args passed on to |
An object of RasterStack-class
stack
## Not run: zip <- system.file("examples", "prismrain.zip", package = "timeraster") dir <- paste0(tempdir(), "/prismrain") dir <- "prismrain" dir.create(dir) unzip(zip, exdir = dir) files <- list.files(dir, full.names = TRUE, pattern = ".tif$", all.files = TRUE) # Create raster stack from file paths res <- make_raster(files) # NetCDF x <- "/Users/sacmac/Downloads/lfndx_Ayear_PRISM_historical_v0_2014-2014.nc" res <- make_raster(x) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.