grid_one_raster: Split regional or national raster into gridded tiles

View source: R/grid_one_raster.R

grid_one_rasterR Documentation

Split regional or national raster into gridded tiles

Description

Split regional or national raster into gridded tiles

Usage

grid_one_raster(
  rasterpath,
  rasterID,
  regionalextent = NA,
  div,
  buffercells = c(0, 0),
  NAvalue,
  writetiles = T,
  tiledir
)

Arguments

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

Details

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.

Value

A list of raster tiles.


land-4-bees/beecoSp documentation built on March 19, 2024, 3:45 p.m.