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
- Host: GitHub
- URL: https://github.com/richard-sti/bam
- Owner: Richard-Sti
- License: gpl-3.0
- Created: 2022-04-08T16:41:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-25T17:05:25.000Z (4 months ago)
- Last Synced: 2025-04-30T21:13:35.232Z (about 2 months ago)
- Topics: abundance-matching, dark-matter-halos, galaxies
- Language: Python
- Homepage:
- Size: 497 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)