The script averages spectra in the chosen region by specified compression factors in the spatial domain. It then displays the average spectra in a grid, where the exterior axes indicate the spatial co-ordinates of the averaged spectra, and the interior axes the data values against spectra co-ordinates.
DATACUBE --- An IFS datacube manipulation package