The Planck likelihood code (PLC/clik) and parameter chains are available from the Planck Legacy Archive.
bzip2 -d plc-1.0.tar.bz2; tar -xf plc-1.0.tar
cd plc-1.0
./waf configure --lapack_mkl=${MKLROOT} --lapack_mkl_version=10.3 --install_all_deps(you may need to change the options on this line depending on your installation; --install_all_deps may not be needed; see the .pdf document file in PLC..PATH/plc_1.0/plc_1.0 for options)
./waf install
export PLANCKLIKE=cliklike export CLIKPATH=PLC..PATH/plc_1.0/plc_1.0 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CLIKPATH/libInstead of the last item you can also use PLC's recommended source PLC..PATH/plc_1.0/bin/clik_profile.sh. While you're at it you can add CosmoMC's python path (for plotting and quite analysis of chains):
export PYTHONPATH=COSMOMC..PATH/python:$PYTHONPATH
ln -s PLC..PATH/plc_1.0 ./data/clik(CosmoMC will look for files in ./data/clik - e.g. "ls -d ./data/clik/*.clik" should show you the likelihood data you downloaded).
mpirun -np 2 ./cosmomc test.inito see if things are being loaded and start running OK.
Note that the "highL" (ACT/SPT) likelihood file is not included in the first PLC download; hopefully it will be added soon. Meanwhile you can follow the instructions on the Planck likelihood download page for how to make it from the ACT/SPT download.
You can use CosmoMC's python scripts and getdist to analyse and make plots from them. Check you have set the PYTHONPATH as described at the top of the Python readme.
Then download and extract all the chain data. Make a symbolic link from ./cosmomc/PLA to the location of the chains, e.g.
ln -s PLA..PATH ./PLAso that ./PLA/base is for example the head directory with the baseline model chains (and PLA..PATH is the full path that you extracted the contents of the download to). For the program to know about the structure of the grid you first need to initialize it for the location you have installed in. Do
python python/makeGrid.py PLAYou can now use python, grid and plotting scripts on the PLA directory, and they will know about the available data. Grid configuration settings for the Planck parameter grid are in PLA/config/.
If you download multiple Planck 2015 chain bundles, extract them to the same location so new folders are just merged over the existing ones and run makeGrid.py again, then plotting scripts etc will find all the results. If you want to use the +BKP tensor chains, download and add them last, so the config folder matches that in the BKP download.
You can also configure the plotting scripts to use the PLA location as the default_grid_root (esp. if you want to run or adapt sample plot scripts under batch2/outputs/). Make a text file called python/getdist/config.ini and add setting lines as required,e.g.
default_grid_root = PLA..PATH cache_dir = PLA..PATH/cache output_base_dir=Setting use_plot_data = F means that you do not need to run getdist first, anything needed for plotting will be calculated on the fly. The cache_dir is used to cache python-format chains, which makes loading them much faster after the first time. By default, plots go into ./outputs directory under cosmomc. You can se the output_base_dir to another location is where plot output (e.g. pdf) files are put by default (in output_base_dir/outputs).
For example, to run the sample scripts, you can do
python batch2/outputs/lensonly_direction.pyto reproduce one of the figures in the lensing paper. (assuming you downloaded and installed the full PLA chain grid; default output location is ./outputs).
For instructions on writing plotting scripts, or how to calculate new derived parameters, see the plotting and analysis scripts readme.