Working with FITS-cubes