get_nlcd_tile: Download and crop a tile from the National Land Cover...

Description Usage Arguments Value

View source: R/NLCD_FUNCTIONS.R

Description

get_nlcd_tile returns a RasterLayer cropped within the specified template. If template is not provided, returns the entire NLCD tile.

Usage

1
2
get_nlcd_tile(template = NULL, year = 2011, dataset = "landcover",
  tileName, raw.dir)

Arguments

template

A Raster* or Spatial* object to serve as a template for cropping. If missing, entire tile is returned.

year

An integer representing the year of desired NLCD product. Acceptable values are 2011 (default), 2006, and 2001.

dataset

A character string representing type of the NLCD product. Acceptable values are landcover' (default), 'impervious', and 'canopy'.

tileName

An character string representing tile to be downloaded. Will be of the form 'NxxWxxx', with the 'x' values as numbers.

raw.dir

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/'.

Value

A RasterLayer cropped within the specified template.


FedData documentation built on May 1, 2019, 11:31 p.m.