Returns a data.table with raster data attached to weight grid

weight_grid_to_data(data, w, subds = 0)

Arguments

data

SpatRaster or file path

w

weight grid

subds

subdatasets to extract

Value

data.table