Skip to contents

Formats spatial extent for use in get_friction_surface.

Usage

ext_from_terra(r)

Value

2x2 matrix

Examples


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