raster_metrics function

Computes metrics by aggregating a raster at lower resolution or summarizing attributes based on XY locations