Holding place for major rewrite of eblur/dust code
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
examples
newdust
tests
.gitignore
.travis.yml
LICENSE
README.md
requirements.txt
setup.py

README.md

newdust

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).

To install:

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

To invoke:

import newdust

How to use:

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.