An open API service indexing awesome lists of open source software.

https://github.com/richard-sti/bam

Baryonic Abundance Matching
https://github.com/richard-sti/bam

abundance-matching dark-matter-halos galaxies

Last synced: about 2 months ago
JSON representation

Baryonic Abundance Matching

Awesome Lists containing this project

README

        

# BAM: Baryonic Abundance Matching

BAM implements a subhalo abundance matching model based on Yao-Yuan Mao's [implementation](https://github.com/yymao/abundancematching) with Peter Behroozi's fiducial deconvolution via the Richardson-Lucy algorithm.

Assumes a constant lognormal scatter in the galaxy proxy conditioned on the halo proxy. See the following example notebook: [``./tutorial/tutorial_SHAM.ipynb``](https://github.com/Richard-Sti/BAM/blob/master/tutorials/tutorial_SHAM.ipynb).

If you use or find helpful any of the code implemented inthis repository please cite [1].

## Installation
The best code is the one that can be *easily* tinkered with. Therefore, a direct pip-installation from PyPI is not supported. Instead, I suggest to clone the repository into your favourite folder:

```bash
cd /path/to/your/favouritefolder
git clone [email protected]:Richard-Sti/BAM.git
```

Furthermore, if needed the the code can be locally installed via pip:

```bash
cd /path/to/your/favouritefolder/BAM
pip install .
```

If locally installed the code can then be imported as usual:
```python
import BAM
```

## References
[1] Richard Stiskalek; Harry Desmond; Thomas Holvey; and Michael G. Jones. "The dependence of subhalo abundance matching on galaxy photometry and selection criteria." Monthly Notices of the Royal Astronomical Society 506, no. 3 (2021): 3205-3223. [arXiv:2101.02765](https://arxiv.org/abs/2101.02765)

## License
[GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.en.html)