Major rewrite of eblur/dust code.
This package calculates extinction curves and small-angle scattering halos from a user-defined dust grain size distribution. Calculates scattering and absorption from first principles (optical constants of the material, Mie or Rayleigh-Gans scattering).
Clone the repo to your computer
git clone https://github.com/eblur/newdust.git newdust/
Enter the repo and run the setup.py
script
cd newdust
python setup.py install
import newdust
See the jupyter notebooks in newdust/examples/ for examples of setting up grain populations and modeling scattering halos from Galactic dust.
For simulating cosmological halos
(e.g. Corrales & Paerels, 2012 and
Corrales 2015)
see the cosmhalo
branch. Some of the cosmhalo tests do not pass. Use with caution.