fetch_brick_Albers: Extract a brick of Australian Albers Tiles.

View source: R/fetch_brick.R

fetch_brick_AlbersR Documentation

Extract a brick of Australian Albers Tiles.

Description

Uses the files stored at the given location, and assumes the tiles are saved as EPSG:3577, which is GDA94.

Usage

fetch_brick_Albers(
  spobj,
  years,
  get_tile_filenames = get_bggwtile_filenames,
  tilereader = bggwtilereader
)

Arguments

spobj

Spatial* or sf object that informs extents of the raster to extract

years

Years of data to extract

get_tile_filenames

A function with arguments (tilecode, years, ...). For a given tilecode and years it must return a list of filenames. Each filename is for the tile for each year provided.

tilereader

A function that accepts a single argument, 'filename', and returns a raster object for that file.

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. Extent of the returned value is a rectangle, and pixel values outside spobj are included.


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