Data management. Data in RamanSPy is represented by a set of custom data container classes based on scalable, computationally efficient array programming , which correspond to different spectroscopic modalities. This includes the generic SpectralContainer class, as well as the more specialised Spectrum, SpectralImage and SpectralVolume classes representing on singlepoint spectra (1D), imaging data (3D), volumetric data (4D) respectively. These classes define data-specific information and behaviour in the background to allow a smooth, user-friendly experience, regardless of the data of interest.