View source: R/fetch_woody_cover_brick.R
fetch_woody_cover_brick | R Documentation |
Uses the files stored at the THREDDS server at NCI.
fetch_woody_cover_brick( spobj, years, rootdir = "[fillmismatch]http://dapds00.nci.org.au/thredds/dodsC/ub8/au/LandCover/DEA_ALC" )
spobj |
Spatial* or sf object that informs extents of the raster to extract |
years |
Years of data to extract |
rootdir |
Where the tiles are located. Typically fillmismatchhttp://dapds00.nci.org.au/thredds/dodsC/ub8/au/LandCover/DEA_ALC,
however I have had need to download the tiles wholescale using |
Combines the tile file naming convention with raster_wcflike()
and fetch_brick_Albers()
A raster brick with extent equal or larger than extent(spobj)
, snapped to the cells of the raster data.
The projection of the returned raster is EPSG:3577, which is GDA94.
polypts <- matrix(data = c(1590555, -3670100, 1610200, -3670100, 1610200, -3664500, 1590555, -3664500, 1590555, -3670100), byrow = TRUE, ncol = 2) demoshape <- sf::st_sfc(sf::st_polygon(x = list(polypts), dim = "XY"), crs = 3577) b <- fetch_woody_cover_brick(demoshape, 1990)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.