Related Experiment Video
Updated: Nov 5, 2025

Applying X-ray Imaging Crystal Spectroscopy for Use as a High Temperature Plasma Diagnostic
Published on: August 25, 2016
Technical Note: SpekPy v2.0-a software toolkit for modeling x-ray tube spectra
Gavin Poludniowski1,2, Artur Omar1,3, Robert Bujila1,4
1Medical Radiation Physics and Nuclear Medicine, Karolinska University Hospital, Stockholm, Sweden.
Purpose:
SpekPy is a free toolkit for modeling x-ray tube spectra with the Python programming language. In this article, the advances in version 2.0 (v2) of the software are described, including additional target materials and more accurate modeling of the heel effect. Use of the toolkit is also demonstrated.
Methods:
The predictions of SpekPy are illustrated in comparison to experimentally determined spectra: three radiation quality reference (RQR) series tungsten spectra and one mammography spectrum with a molybdenum target. The capability of the software to correctly model changes in tube output with tube potential is also assessed, using the example of a GE RevolutionTM CT scanner (GE Healthcare, Waukesha, WI, USA) and specifications in the system's Technical Reference Manual. Furthermore, we note that there are several physics models available in SpekPy. These are compared on and off the central axis, to illustrate the differences.
Results:
SpekPy agrees closely with the experimental spectra over a wide range of tube potentials, both visually and in terms of first and second half-value layers (HVLs) (within 2% here). The CT scanner spectrum output (normalized to 120 kV tube potential) agreed within 4% over the range of 70 to 140 kV. The default physics model (casim) is adequate in most situations. The advanced option (kqp) should be used if high accuracy is desired for modeling the anode heel effect, as it fully includes the effects of bremsstrahlung anisotropy.
Conclusions:
SpekPy v2 can reliably predict on- and off-axis spectra for tungsten and molybdenum targets. SpekPy's open-source MIT license allows users the freedom to incorporate this powerful toolkit into their own projects.
Related Concept Videos
Atomic Emission Spectroscopy: Instrumentation
Atomic Absorption Spectroscopy: Radiation and Light Sources
Two common narrow-range 'line' sources used in AAS are hollow-cathode lamps (HCLs) and...
Atomic Emission Spectroscopy: Lab
Emission Spectra
Inductively Coupled Plasma Atomic Emission Spectroscopy: Instrumentation
There are three main types of inductively coupled plasma atomic emission spectroscopy (ICP-AES) instruments: sequential, simultaneous multichannel, and Fourier transform instruments, with the latter being less commonly used....
Atomic Absorption Spectroscopy: Instrumentation
The atomizer used in AAS can be either a flame atomizer or an...

