Skip to content

pcampeti/plancklens

 
 

Repository files navigation

plancklens

alt textBuild Status

plancklens is is a python code for cosmology containing most of Planck 2018 CMB lensing pipeline, by Julien Carron on behalf of the Planck collaboration (publication here.) Some numerical parts are written in Fortran. Portions of it (structure and code) have been directly adapted from pre-existing work by Duncan Hanson.

Installation

After cloning the repository, build an editable installation with

pip install -e . [--user]

The –-user is required only if you don’t have write permission to your main python installation. A fortran compiler is required for a successful installation.

Contents

This code contains most of the Planck 2018 lensing pipeline. In particular it possible to reproduce the published map and band-powers basically exactly.

Some parts of the pipeline have been left out or are not yet translated to python 3. This is the case notably of the band-powers likelihood code, or the code used to produce lensed CMB skies (the latter code is the stand-alone package lenspyx)

Example parameter files

To use the examples lensing reconstruction parameter files, you will need further to define the environment variable $PLENS to some place safe to write.

Details on the structure of a parameter file are given in this one: idealized_example.py

In order to reproduce the 2018 lensing maps and spectrum band-powers, one may use the provided smicadx12_planck2018.py parameter file.

The basics on how to use parameter files can be found in this jupyter notebook. Some details on the numerical computations are collected in this document. You might also need to check out the plancklens documentation (with some bits in progress).

ERC logo

About

Planck 2018 lensing pipeline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.8%
  • Fortran 7.2%