procedure cubemerge

Merges several fits datacubes. All files must have the same array size (in the first two dimensions) and bitpix. The file name of the result must not be the same as any of the input names. The FITS header is copied from the first file and the NAXIS3 keyword is updated.

cubemerge result, cubes

result:   The filename where the datacube is written to
cubes:   A string array with the file names to be merged