SpatRaster
SpatVector
R/ext_from_terra.R
ext_from_terra.Rd
Formats spatial extent for use in get_friction_surface.
get_friction_surface
ext_from_terra(r)
terra::SpatRaster or terra::SpatVector
terra::SpatRaster
terra::SpatVector
2x2 matrix
matrix
library(terra) #> terra 1.8.5 r <- terra::rast( extent = terra::ext(c(111, 112, 0, 1)) ) ext_from_terra(r) #> min max #> x 111 112 #> y 0 1