map_points_to_cells: Map point coordinates to cell indices

View source: R/utils.R

map_points_to_cellsR 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


spatialrisk documentation built on June 8, 2025, 9:40 p.m.