autoemxsp.data.Xray_absorption_coeffs package
Created on Wed Jan 15 15:31:09 2025
@author: Andrea
- autoemxsp.data.Xray_absorption_coeffs.xray_mass_absorption_coeff(element, energies)[source]
Returns mass absorption coefficient of element at given energies. Calculated from atomic form factors from Henke database (https://henke.lbl.gov/optical_constants/asf.html)
Parameters
- energyfloat, list, or numpy.array
The X-ray energy values in keV at which to compute the mass absorption coefficient. The energy can be provided as a single value (float), a list of energies, or a numpy array. All input energies will be converted into a numpy array for consistent processing.
- Returns:
mass_abs – The mass absorption coefficient (in cm²/g) at the provided energies. The result is computed using the interpolation of atomic scattering factors (f2) for the given energies and based on the atomic form factor data.
- Return type:
numpy.array