map_points_to_cells {spatialrisk}R Documentation

Map point coordinates to cell indices

Description

Map point coordinates to cell indices.

Usage

map_points_to_cells(pts, focal, lon, lat, crs_from, crs_to, r = NULL)

Arguments

pts

data.frame with lon and lat columns in CRS 4326.

focal

focal (SpatRaster).

lon

character.

lat

character.

crs_from

crs from

crs_to

crs to

r

buffer around extent (in units of the crs).

Author(s)

Martin Haringa


[Package spatialrisk version 0.7.2 Index]