getCovariateRasters | R Documentation |
Looks in a specified folder for raster files. Returns a multi-layered SpatRaster of the rasters cropped to the extent specified by the shape parameter.
getCovariateRasters(directory, file_pattern = ".tif$", shape)
directory |
Filepath to the directory containing the rasters. |
file_pattern |
Pattern the filenames must match. Default is all files ending in .tif . |
shape |
An object with an extent that the rasters will be cropped to. |
A multi-layered SpatRaster of the raster files in the directory
## Not run:
getCovariateRasters('/home/rasters', '.tif$', shape)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.