Scripts for computing cross-correlations for Simons Observatory
NaMaster
andpymaster
: https://namaster.readthedocs.io/en/latest/pymaster.htmlpixell
: https://github.com/simonsobs/pixell (for flat sky computations)healpy
: https://healpy.readthedocs.io/en/latest (for curved sky computations)pyyaml
: https://pyyaml.org/wiki/PyYAMLDocumentation (to read input files)astropy
: https://github.com/astropy/astropysharedmem
: [https://pypi.org/project/sharedmem/0.3/] (for multiprocessing via forking rather than pickling)
module load cray-fftw/3.3.8.2
module load python/2.7-anaconda-2019.07
module load intel
module load openmpi
Install NaMaster with conda:
conda install -c conda-forge namaster
conda install -c conda-forge cfitsio=3.430
Install pymaster with pip:
pip install pymaster --user
Download the repo from https://github.com/simonsobs/pixell, unzip it, cd to its root folder,then:
python setup.py build_ext -i
Add the following line to your .bashrc.ext
export PYTHONPATH=$PYTHONPATH:/path/to/your/copy/of/pixell-master
conda install pyyaml
conda install astropy
conda install -c conda-forge healpy
- From the xcorr directory, run:
python generate_mocks.py --path2config path/to/your/favorite/config.yaml
- Config file example:
configs/gg-gdg-dgdg-LSSTxSO-curved.yaml
- From the xcorr directory, run:
python compute_cls.py --path2config path/to/your/favorite/config.yaml
- Config file example:
configs/cls-dgdg-curved.yaml