Previously eblur/newdust
This package calculates extinction curves and small-angle scattering halos from a user-defined dust grain size distribution. It calculates scattering and absorption from first principles (optical constants of the material, Mie or Rayleigh-Gans scattering).
Updated 2026.06 to by installable via PyPI and documented with Sphinx
Documentation: https://eblur.github.io/xdust
pip install xdust
If you need to stay up to date with development versions of xdust, use:
git clone https://github.com/eblur/xdust.git
cd xdust
pip install -e .
import xdust
See the jupyter notebooks in examples/ for examples of setting up grain populations and modeling scattering halos from Galactic dust.