Git Product home page Git Product logo

lensit's Introduction

Lensit

PyPI versionalt textBuild Status

This is a set of python tools dedicated to CMB lensing and CMB delensing, by Julien Carron.

This code is essentially always using the flat-sky approximation. For similar tools in curved-sky geometry see plancklens

Installation: in the repo directory,

 pip install -e . [--user]

This code uses pyFFTW by default for FFTs, based on FFTW. Sometimes it is simplest to work in a conda environment and install all this with

conda install -c conda-forge pyfftw

Main features are:

  • Maximum a posterior estimation of CMB lensing deflection maps from temperature and/or polarization maps.
    (See https://arxiv.org/abs/1704.08230 by J.Carron and A. Lewis)
  • Wiener filtering of masked CMB data and allowing for inhomogenous noise, including lensing deflections, using a multigrid preconditioner.
    (Described in the same reference)
  • Fast and accurate simulation libraries for lensed CMB skies, and standard quadratic estimator lensing reconstruction tools.
    (See https://arxiv.org/abs/1611.01446 by J. Peloton et al.)
  • CMB internal delensing tools, including internal delensing biases calculation for temperature and/or polarization maps.
    (See https://arxiv.org/abs/1701.01712 by J. Carron, A. Lewis and A. Challinor)

Several parts were directly adapted from or inspired by qcinv qcinv and quicklens by Duncan Hanson, many thanks to him.

To use the GPU implementation of some of the routines, you will need pyCUDA

An ipython notebook 'demo_basics.ipynb' covers the simple aspects of building simulation librairies.

The notebook 'demo_lensit.ipynb' shows an example of iterative lensing map reconstruction for a configuration roughly in line with CMB Stage IV specifications.

Other example and tests scripts might follow, or you may just write to me.

alt text SNSF logo

lensit's People

Contributors

carronj avatar louisl3grand avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.