Returns a data.table with columns for ID, grid_id, X, Y and weight. By default this object is sorted on the grid_id
weighting_grid(file, AOI, ID)
path to a gridded file (either .tif or .nc), or SpatRast object
sf object of aggregation units
the name of the column providing the unique identified of each geom
a list(data.table, vector)