Subgen

a fast subhalo sampler

View the Project on GitHub Kambrian/SubGen

SubGen: a fast subhalo sampler

SubGen generates Monte-Carlo samples of dark matter subhaloes, according to the unified subhalo distribution model in Han et. al. (2015; http://arxiv.org/abs/1509.02175).

To get started, check example.py. You only need to specify the host halo mass, and the number of subhaloes to sample.

Prerequisites

You need a python installation with the core scientific packages: numpy, matplotlib and scipy. You also need the emcee package(http://dan.iel.fm/emcee) for MCMC sampling. Try

 easy_install numpy matplotlib scipy emcee

or

 pip install numpy matplotlib scipy emcee

to install these dependences if you miss them.

The basic sample contains:

optional properties:

For complete features, have a look at the docstrings and the source code (they are not long~).

Authors

Jiaxin Han (@Kambrian)[ICC, Durham] http://kambrian.github.io/SubGen