Use median on raster data sets