Skip to contents

Convert WhiteboxRaster to SpatRaster

Usage

as_rast(x)

Arguments

x

Raster object of class WhiteboxRaster. See wbw_read_raster() for more details.

Value

SpatRaster object

See also

Examples

if (FALSE) { # \dontrun{
f <- system.file("extdata/dem.tif", package = "wbw")
wbw_read_raster(f) |>
  wbw_slope(units = "r") |>
  as_rast()
} # }