Some useful tools for conducting mock surveys of galaxies from the UniverseMachine empirical model.
- Alan Pearl
python=3.9.*
orpython=3.8.*
- At the time of writing, a prerequisite (
halotools>=0.7
) is incompatible withpython>=3.10
. - Optional, but recommended to install Corrfunc (
pip install Corrfunc
)- Requires gsl installation (check with
gsl-config --version
, install withconda install -c conda-forge gsl
)
- Requires gsl installation (check with
conda create -n py39-mocksurvey python=3.9 gsl
conda activate py39-mocksurvey
pip install Corrfunc
Note: If using pycorr, don't pip install Corrfunc
. Instead, follow the pycorr instructions at https://py2pcf.readthedocs.io/en/latest/user/building.html
pip install --upgrade git+https://github.com/AlanPearl/mocksurvey.git
- Make a directory, for example:
mkdir -p ~/local/mocksurvey_downloads/
- Set the path:
python -m mocksurvey set-data-path ~/local/mocksurvey_downloads
- Make a directory, for example:
mkdir -p ~/local/src/
- Install UniverseMachine:
cd ~/local/src
git clone https://bitbucket.org/pbehroozi/universemachine
cd universemachine
make
python -m mocksurvey config UM set-lightcone-executable ./lightcone
Download UniverseMachine snapshots. This redshift range (0 - inf) downloads all ~300 GB. You may choose a narrower range or enter a single value to download a single snapshot.
python -m mocksurvey download-um 0 inf
python -m mocksurvey download-uvista
python -m mocksurvey download-uvista-mock-spectra
Get started by building a mock survey (see Pearl et al. 2022)
python -m mocksurvey lightcone [--help]
python -m mocksurvey --help