improvements on get_raster_stats script