GraCosPA / cmblensplus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Analysis tools for 2D map to compute some higher-order statistics

This package contains a Fortran wrapper for Python, to reconstruct lensing potential, cosmic bi-refrimgence, and patchy reionization from cosmic microwave background anisotropies (CMB) in full and flat sky. This package also includes modules for delensing, some bi-spectrum calculation, and so on. Installing this library at NERSC is straightforward.

Documents and Reference

Please go to the following link for details of how to use each module: https://toshiyan.github.io/clpdoc/html/. The reference paper for each module is as follows:

Curved sky modules:

Flat sky modules:

This Package

This package contains three main python modules based on Fourtran 90 sources:

  • basic --- basic routines such as analytic calculation of delensed B-mode spectrum and lensing bispectrum.

  • curvedsky --- analysis package to measure lensing, birefringence, patchy tau, bias-hardening, bispectrum, delensing and analytic reconstruction normalization.

  • flatsky --- the same as curvedsky code but for flatsky analysis.

The additional simple python sctipts are stored at

  • example --- several example scripts for demonstration

  • utils --- python scripts to compute noise biase, RDN0, diagonal RDN0, etc.

Installation

[1] Compile Fortran public software

Go to "F90/pub/" directory, and install each pubclic package (FFTW, Healpix, LAPACK95, cfitsio and Lenspix).

[2] Create Fortran wrapper

Go to the root directory and type one of the following command:

- ./MAKEALL.sh all       (for generating all modules)
- ./MAKEALL.sh basic     (for basic module)
- ./MAKEALL.sh curvedsky (for curvedsky module)
- ./MAKEALL.sh flatsky   (for flatsky module)

You will find modules under "wrap/" for python 3 and "wrap_py2" for python 2, depending on your f2py version.

Examples

You can find the example codes at "example" directory.

Acknowledgement

The library software uses the following public codes: FFTW, HEALPix, LAPACK, CFITSIO, LensPix.

Contact

namikawa at slac.stanford.edu

About


Languages

Language:C 36.1%Language:Jupyter Notebook 23.1%Language:Fortran 11.5%Language:C++ 8.8%Language:IDL 5.1%Language:TeX 3.1%Language:HTML 2.8%Language:Python 1.9%Language:Prolog 1.8%Language:Shell 1.3%Language:Raku 1.2%Language:Yacc 1.0%Language:Java 0.7%Language:Makefile 0.5%Language:Perl 0.3%Language:M4 0.2%Language:CSS 0.2%Language:Cython 0.1%Language:Lex 0.1%Language:Roff 0.0%Language:CMake 0.0%Language:Smarty 0.0%Language:Batchfile 0.0%Language:JavaScript 0.0%