View source: R/download_WCF_tiles.R
download_WCF_tiles | R Documentation |
Downloads the woody cover tiles and saves them in the same directory structure as on the NCI THREDDS
download_WCF_tiles(spobj, years, rootdir = ".", ...)
spobj |
Spatial* or sf object that informs extents of the raster to extract |
years |
Years of data to download |
rootdir |
Root directory to copy tile structure to |
... |
Passed to |
A list giving success or otherwise of file downloads. Code 0 for success - see download.file()
return value.
polypts <- matrix(data = c(1590555, -3670100, 1610200, -3670100, 1610200, -3664500, 1590555, -3664500, 1590555, -3670100), byrow = TRUE, ncol = 2) spobj <- sf::st_sfc(sf::st_polygon(x = list(polypts), dim = "XY"), crs = 3577) download_WCF_tiles(spobj, years = 2000:2001)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.