New answers tagged extract
3
votes
Accepted
Find locations (cell's centroid) of a raster's min and max value using R and terra
Read raster using terra:
r = rast("au.tif")
Get coords of minimum:
xyFromCell(r, where.min(r)[2])
## x y
## [1,] 377500 393500
Breaking this down a bit, where.min returns ...
0
votes
Terra::extract delivers unexpected values when extracting table from raster using polygons
Nevermind, I figured terra::extract does not return the fraction of polygon area covered (though the number of rows in the output table equals the number of polygons within the vector layer), but the ...
Top 50 recent answers are included
Related Tags
extract × 348raster × 116
r × 97
qgis × 94
arcgis-desktop × 38
polygon × 29
google-earth-engine × 25
shapefile × 22
point × 18
python × 13
arcmap × 13
pyqgis × 12
openstreetmap × 12
coordinates × 12
arcpy × 11
arcgis-pro × 11
geotiff-tiff × 11
qgis-3 × 10
overlapping-features × 10
qgis-modeler × 10
vector × 9
clip × 9
pixel × 9
terra × 9
coordinate-system × 8