Skip to content

eblur/newdust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

newdust

DOI

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.