HyperSpy: multidimensional data analysis toolbox

HyperSpy is an open source Python library which provides tools to facilitate the interactive data analysis of multidimensional datasets that can be described as multidimensional arrays of a given signal (e.g. a 2D array of spectra a.k.a spectrum image).

HyperSpy aims at making it easy and natural to apply analytical procedures that operate on an individual signal to multidimensional arrays, as well as providing easy access to analytical tools that exploit the multidimensionality of the dataset.

Its modular structure makes it easy to add features to analyze different kinds of signals. Currently there are specialized tools for electron energy-loss spectroscopy (EELS) and energy dispersive X-rays (EDX) data analysis.


HyperSpy provides tools that operate on numpy arrays without subclassing them and therefore it is fully compatible with the scientific Python ecosystem. It provides, amongst others:

  • Named and scaled axes.
  • Axes indexing by name.
  • Non-equivalent axes: HyperSpy distinguishes between signal and navigation axes.
  • Iteration over the navigation axes.
  • Advanced data indexing capabilities including separate indexing for the signal and navigation axes and data indexing using using axis units.
  • Visualization tools for n-dimensional spectra and images based on matplotlib.
  • Curve fitting.
  • Easy access to machine learning e.g. PCA, ICA...
  • Reading and writing of multidimensional datasets in multiple file formats.
  • Modular design for easy extensibility.
  • Specialized classes for electron-energy loss spectroscopy (EELS) and energy-dispersive X-rays (EDX) data analysis.

HyperSpy is released under the GPL v3 license and is actively developed and used in research (see the Bibliography section of the User Guide)


New demos section

Published on 2014-06-19

The examples section in the HyperSpy website has been replaced by a new demos section.

Read more…

HyperSpy 0.7.1 has been released!

Published on 2014-06-18

We are proud to announce a new maintenance release of Hyperspy.

Read more…

HyperSpy practical at the SuperSTEM Summer School

Published on 2014-06-18

The 6th biennial SuperSTEM Summer School (4-7 July 2014, Daresbury UK) includes a HyperSpy practial.

Read more…

HyperSpy training at the IMC2014

Published on 2014-04-01

HyperSpy training at the IMC2014 on the 7th of September 2014 in Prague, Czech Republic.

Read more…

Citing HyperSpy

All of the authors of HyperSpy are connected with academic and scientific research, so it is important to us to be able to show the impact of our work in other projects and fields.

If HyperSpy contributes to a project that leads to a scientific publication, please acknowledge this fact by citing the project. Please, read on how to cite HyperSpy here