The SPEX X-ray spectral fitting package is a software tool to fit X-ray spectra. It has been optimized for high-resolution spectroscopy and is very useful for grating spectra from XMM-Newton RGS, Chandra LETG/HETG, and micro-calorimeter spectra from Hitomi Resolve. SPEX contains a wide range of spectral models, which makes it ideal for fitting X-ray spectra from any astrophysical source, observed by any X-ray observatory.

The development of spectral models began already in 1972 by Rolf Mewe, which lead to the MEKAL model in the 1980’s. From the 1990’s, Jelle Kaastra started developing a spectral fitting code in Fortran, which has been continuously expanded and maintained. SPEX contains a wide range of spectral models, which makes it ideal for fitting X-ray spectra from any astrophysical source, observed by any X-ray observatory. More recently, a Python interface was developed for the SPEX program, which makes it easier to script and include in Jupyter notebooks.

The main advantage of SPEX is that most of the plasma models use the same atomic database and the same routines calculating the spectral processes, making it consistent across models.

More recently, a Python interface was developed for the SPEX program, which makes it easier to script and include in Jupyter notebooks. The main advantage of SPEX is that most of the plasma models use the same atomic database and the same routines calculating the spectral processes, making it consistent across models.

Link: https://github.com/spex-xray


Institute(s) providing expertise: