fetch_woody_cover_brick: Extract a brick of the WALD woody cover values.

View source: R/fetch_woody_cover_brick.R

fetch_woody_cover_brickR Documentation

Extract a brick of the WALD woody cover values.

Description

Uses the files stored at the THREDDS server at NCI.

Usage

fetch_woody_cover_brick(
  spobj,
  years,
 
    rootdir = "[fillmismatch]http://dapds00.nci.org.au/thredds/dodsC/ub8/au/LandCover/DEA_ALC"
)

Arguments

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 download_WCF_tiles() and access them locally.

Details

Combines the tile file naming convention with raster_wcflike() and fetch_brick_Albers()

Value

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.

Examples

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)

sustainablefarms/sflddata documentation built on April 19, 2022, 11:19 a.m.