Skip to content

A python implementation of MOPED compressed CMB TTTEEE+lensing

Notifications You must be signed in to change notification settings

alexander-reeves/planck_compressed

Repository files navigation

planck_compressed

Project Banner or Visual

A planck PR3 compressed CMB TTTEEE likelihood and example emulator-acceleraterated sampler.

Table of Contents

Usage

  • The best way to get started with this compressed likelihood is by runing the example_notebook.ipynb provided. This is a self-contained application which makes use of the emcee sampler in run_mcmc_with_sampler.py to produce compressed Planck18 CMB TTTEEE + Lensing contours.

  • If you are only interested in the MOPED compression vectors these are stored under ./data/moped_compression_vecs there are one set for the CMB lensing and a separate set for the CMB primary TTTEEE

  • The compression vectors are stored as 2D numpy arrays which represent the compression vectors for each of the parameters vertically stacked together in the same order as the name of the files.

Support

Feel free to reach out at [email protected] if you have any questions.

Contributing

Please feel free to contribute to this project! It would be great to add in other compressed likelihoods!

Credits

The code in this repository uses pieces from a number of previous works. In particular, we use funtions from the $\texttt{ChaosHammer}$ package for running the emulator-accelerated MCMC (see chaoshammer_paper) and we follow the Python implementations of the Planck primary CMB TTTEEE likelihoods both high-$\ell$ and low-$\ell$ described in these associated papers paper1 and paper2. Finally, for the emulators in this example we use the $\texttt{cosmopower}$ framework available here: cosmopower.


© 2023 Alexander Reeves

About

A python implementation of MOPED compressed CMB TTTEEE+lensing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published