Output. saving results
Maybe we could make the distinction when saving results if we are only saving results of one spectrum or several. It would simplify the output. But has we are "duplicating" data contained in the .h5 used also for the processing it might be cumbersome.
Another good point could be to invert the axis for processing. Spectrum are saved in Z when they should be in X.