kkcalc2 is a comprehensive toolkit for calculating Kramers Kronig transforms of X-ray absorption/dispersion data, and is built to the feature-rich standards of xraysoftmat.
kkcalc2 is an open-source python package to calculate the Kramers-Kronig (inverse) transform of X-ray absorption (dispersion) data:
where
kkcalc2 uses a polynomial representation algorithm developed by Watts [1].
This package provides an object oriented API, to evaluate optical constants (index of refraction, absorption and dispersion, etc.), extend measurement spectra with databases, or can be accessed through a PyQT6 GUI interface. Documentation can be found at readthedocs, and releases (including documentation and executable builds) can be found at github.
| [1] | Benjamin Watts, "Calculation of the Kramers-Kronig transform of X-ray spectra by a piecewise Laurent polynomial method", Opt. Express 22, (2014) 23628-23639. DOI:10.1364/OE.22.023628 |