gRasterize: Rasterize features

View source: R/nhSDM_notexported.R

gRasterizeR Documentation

Rasterize features

Description

This is a wrapper around terra::rasterize, used internally in nh_burn and nh_stack.

Usage

gRasterize(spf, rast, value = 1, background = NA)

Arguments

spf

input sf or sp object

rast

terra raster dataset with desired output projection, extent, cell size

value

integer value to apply to areas covered by spf

background

value to apply to areas not covered by spf

Value

rast object


VANatHeritage/nhSDM documentation built on Feb. 1, 2024, 6:39 a.m.