weighting_grid: Build Weighting Grid

View source: R/zonal.R

weighting_gridR Documentation

Build Weighting Grid

Description

Returns a data.table with columns for ID, grid_id, X, Y and weight. By default this object is sorted on the grid_id

Usage

weighting_grid(file, AOI, ID)

Arguments

file

path to a gridded file (either .tif or .nc), or SpatRast object

AOI

sf object of aggregation units

ID

the name of the column providing the unique identified of each geom

Value

a list(data.table, vector)


mikejohnson51/opendap.catalog documentation built on Jan. 27, 2023, 1:25 a.m.