View source: R/grid_one_raster.R
grid_one_raster | R Documentation |
Split regional or national raster into gridded tiles
grid_one_raster(
rasterpath,
rasterID,
regionalextent = NA,
div,
buffercells = c(0, 0),
NAvalue,
writetiles = T,
tiledir
)
rasterpath |
file path of input raster file |
rasterID |
text string to identify output tiles (e.g. CDL for NASS Cropland Data Layer) |
regionalextent |
optional, vector of state names to crop national raster to region of interest |
div |
division factor specifying the number of tiles in x and y dimensions |
buffercells |
number of cells overlapping between adjacent tiles |
NAvalue |
No data or background value of input raster |
writetiles |
logical, write tiles as directory of .tif files? |
tiledir |
path to directory where output tiles should be saved |
NAvalue parameter is used to identify raster tiles that are all background (e.g. areas of open water). These background tiles are excluded from list of output tiles and tile directory.
A list of raster tiles.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.