as_raster: Convert to in-memory raster

Description Usage Arguments Details Value

View source: R/lazyraster.R

Description

Create an actual raster::raster object by breaking the lazy contract and demanding pixel values at a given resolution.

Usage

1
as_raster(x, dim = NULL, resample = "NearestNeighbour", native = FALSE)

Arguments

x

a lazyraster

dim

dimensions, pixel size in rows and columns

resample

resampling method, see vapour::vapour_read_raster

native

return raster at native resolution, default is FALSE

Details

Control the dimensions and method for resampling with the 'dim' and 'resample' arguments.

When native = TRUE the dim argument is ignored, and no resampling is performed.

Value

a regular raster 'BasicRaster' in-memory object


lazyraster documentation built on Oct. 7, 2021, 5:08 p.m.