Home doc page for eblur/dust¶
The eblur/dust set of python modules calculate scattering absorption and scattering efficiencies for dust from the infrared to the X-ray. This code can also be used to calculate dust scattering halo images in the X-ray, in both interstellar and intergalactic (cosmological) contexts.
First published version of this code (released with Corrales & Paerels, 2015) http://dx.doi.org/10.5281/zenodo.15991
Source code: github.com/eblur/dust
Support: If you are having issues, please contact lia@space.mit.edu
Features¶
A number of dust grain size distributions and optical constants are provided, but they can be fully customized by the user by invoking custom objects of the approporiate class. Provided dust models include:
- A power law distribution of dust grain sizes
- Weingartner & Draine (2001) grain size distributions for Milky Way dust
- Optical constants (complex index of refraction) for 0.1 um sized graphite and astrosilicate grains
- Rayleigh-Gans scattering physics
- Mie scattering physics using the algorithms of
Bohren & Huffman (1986)
- Converted from fortran and IDL to python
Installation¶
As of yet there is no static install version. I recommend cloning the github repo into a directory in your python path.:
cd /path/to/python/libraries/
git clone https://github.com/eblur/dust.git dust
Then be sure to add to your python path:
export PYTHONPATH=$PYTHONPATH:/path/to/python/libraries/dust/
Dependencies¶
I recommend using Anaconda to manage python distributions and packages
- Python 2.7 ()*eblur/dust* is not yet fully Python 3 compatible)
- numpy and scipy
- Astropy