Skip to contents

Create a raster grid for UD computation

Usage

.make_raster(x, cell_size = NULL, dim_size = 10, ext = 0.3)

Arguments

x

A move2 or sf object to derive the extent from.

cell_size

Numeric cell size in map units, or NULL to auto-compute.

dim_size

Number of cells along the longest dimension (used if cell_size is NULL).

ext

Extension factor for the bounding box.

Value

A terra::SpatRaster with the appropriate extent, resolution, and CRS.