Data Extraction from tif(s) & Raster/spatRaster
.read_raster(file, dims, layer = -1)
file | a in-memory Raster(layer, stack, brick), SpatRaster, or file path(s) |
---|---|
dims | the row and column IDs to extract data between (xmin xmax ymin ymax) |
layer | the layer to extract from. If -1 (default), get all layers |
data.table