get_nlcd_tile
returns a RasterLayer
cropped within the specified template
.
If template is not provided, returns the entire NLCD tile.
get_nlcd_tile(template = NULL, year = 2011, dataset = "landcover",
tileName, raw.dir)
A Raster*
or Spatial*
object to serve
as a template for cropping. If missing, entire tile is returned.
An integer representing the year of desired NLCD product. Acceptable values are 2011 (default), 2006, and 2001.
A character string representing type of the NLCD product. Acceptable values are landcover' (default), 'impervious', and 'canopy'.
An character string representing tile to be downloaded. Will be of the form 'NxxWxxx', with the 'x' values as numbers.
A character string indicating where raw downloaded files should be put.
The directory will be created by download_nlcd_tile
if missing. Defaults to './RAW/NLCD/'.
A RasterLayer
cropped within the specified template
.