Skip to content
forked from eblur/newdust

Holding place for major rewrite of eblur/dust code

License

Notifications You must be signed in to change notification settings

ErikLytle/newdust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Holding place for major rewrite of eblur/dust code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%