Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 1.99 KB

README.md

File metadata and controls

41 lines (22 loc) · 1.99 KB

lenspyx

PyPI versionalt textBuild Status

Curved-sky python lensed CMB maps simulation package by Julien Carron.

This allows one to build very easily lensed CMB simulations.

The package explicitly provides a few methods for most basic usage (such alm2lenmap and synfast). Check the doc (which refers to the repo master branch). There is also a notebook demo_lenspyx for examples and sanity checks.

There are further tools for CMB lensing reconstruction (adjoint lensing etc.) which may be useful to CMB-lensing intensive applications.

From v2 onwards (april 2023):

Lenspyx now essentially only wraps extremely efficient routines from DUCC by M.Reinecke, with massive speed-ups and accuracy improvements (see this paper), in a way incompatible to v1 which is now abandoned.

Required is ducc0 version >= 0.30.0. For best performance, please refer to the DUCC page for installation instructions making profit of compiler-specfic optimizations.

Installation

The code should hopefully be platform independent.

Editable installation from source: clone the repo and

pip install --no-binary ducc0 -e ./ [--user]

From pypi

pip install --no-binary ducc0 lenspyx [--user]

The –-user is required only if you don’t have write permission to your main python installation. The ducc0 installation without binaries might take a while (several minutes).

In case you use this package and also wish to acknowledge it, you can provide a reference to this paper.

SNSF logo