Code Monkey home page Code Monkey logo

pur's Introduction

PUR

lightweight pure pseudo-Cl estimator for HEALPix

Use with caution - not tested!

Installation

pip install . [--user]

Usage

Compute pure E- and B-mode spherical harmonic coefficients

import pur
alm=pur.map2alm_pure(map,mask)
cl=hp.alm2cl(alm)

Compute mode-coupling matrix corresponding to these pseudeo-power spectra

import healpy
mcl=healpy.anafast(mask)
mcm=pur.compute_mcm(mcl,lmax=500,pe1=False,pe2=False,pb1=True,pb2=True) # This assumes non-pure E-modes and pure B-modes in the mode-coupling matrix

That's it!

Credits

The framework of E- and B-purification and mode-coupling-matrix computation is outlined in

Parts of this package evolved from code provided in

Authors

pur's People

Contributors

doicbek avatar

Watchers

 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.