Abstract Spectral remote-sensing indices based on visible, NIR, and SWIR wavelengths are useful in predicting spatial patterns of bare soil. However, identifying an effective combination of informative wavelengths or spectral
R-Code to Calculate the Average Value of Raster Within Polygons
Below you’d find a simple R code that calculates the average value of a raster within polygons: