A library for X-ray matter interaction cross sections
xraylib provides an API with over 50 functions designed to provide convenient access to databases with cross sections (photoelectric, Compton, Rayleigh, XRF etc.), line energies, edge energies, fluorescence yields, scattering factors, refractive indices, Compton profiles etc. Bindings exist for Perl, Python, Java, Fortran, IDL, Lua, Ruby, PHP and .NET.
xraylib provides an API with over 50 functions designed to provide convenient access to databases with cross sections (photoelectric, Compton, Rayleigh, XRF etc.), line energies, edge energies, fluorescence yields, scattering factors, refractive indices, Compton profiles etc. Bindings exist for Perl, Python, Java, Fortran, IDL, Lua, Ruby, PHP and .NET.
To install xraylib, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install xraylib
To see what files were installed by xraylib, run:
port contents xraylib
To later upgrade xraylib, run:
sudo port selfupdate && sudo port upgrade xraylib
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.