spat.trait function

Average trait calculation for raster