z-porter/kktranz
I present a set of functions for analyzing optical data with Kramers-Kronig (KK) transforms. The functions compute and plot KK transforms with numerical integrals to convert between real and imaginary scattering factors with x-ray data. This may be applied to electronically characterize materials given spectral data, or to check physical consistency of data.
kkReal() outputs the real scattering factors of hard x-rays at the input energy range by computing the KK transform of an input array of imaginary scattering factors. kkImag() outputs imaginary given real scattering factors. kkXANES() outputs both given a normalized XANES spectrum. All are optimized for speed and customizable, yet work with minimal inputs.
Initially used at SLAC National Accelerator Laboratory as a consistency check between reflectometry and absorption data. Code is thoroughly commented and easily adapted for uses beyond the initial one.
This software is distributed under the GNU licence agreement by Zachary Porter, email: zach.porter (at) ucsb (dot) edu
This applies previous software written by Valerio Lucarini, who is unaffiliated with this work. The same transforms work for susceptibility data too. For some relevant applications in nanostructures and polymers, see http://www.springer.com/us/book/9783540236733
Cite As
Zachary Porter (2024). z-porter/kktranz (https://github.com/z-porter/kktranz), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Transforms > z-transforms >
- Sciences > Physics > Atomic, Molecular & Optical >
Tags
Acknowledgements
Inspired by: Tools for Data Analysis in Optics, Acoustics, Signal Processing, chemical_elements
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Dependencies
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | updated description and author contact information |
|