GithubHelp home page GithubHelp logo

oliverphilcox / polybin Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 5.0 745.62 MB

Binned polyspectrum estimation on the full sky, optionally polarized and mask-deconvolved

License: MIT License

Jupyter Notebook 98.57% Python 1.43% Shell 0.01%

polybin's Introduction

logo

PolyBin

PolyBin is a Python code that estimates the binned power spectrum, bispectrum, and trispectrum for full-sky HEALPix maps such as the CMB, using the algorithms of Philcox 2023a and Philcox 2023c. This can include both spin-0 and spin-2 fields, such as the CMB temperature and polarization, or galaxy positions and galaxy shear. Alternatively, one can use only scalar maps. For each statistic, two estimators are available: the standard (ideal) estimators, which do not take into account the mask, and window-deconvolved estimators. In the second case, we require computation of a Fisher matrix; this depends on binning and the mask, but does not need to be recomputed for each new simulation. For the bispectrum and trispectrum, we can compute both the parity-even and parity-odd components, accounting for any leakage between the two.

PolyBin contains the following modules:

  • pspec: Binned power spectra
  • bspec: Binned bispectra
  • tspec: Binned trispectra

For usage details, see the Tutorial.

In the planck directory, we include measurements and analysis of the Planck parity-odd temperature trispectrum, as in Philcox 2023b. The scalar branch contains legacy scalar-only code from the Philcox 2023a paper (without a number of optimizations).

Authors

Dependencies

  • Python 3
  • healpy, pywigxjpf, fitsio, tqdm (pip installable)
  • pixell [optional, for faster SHTs with libsharp]

References

Code references:

  1. Philcox, O. H. E., "Optimal Estimation of the Binned Mask-Free Power Spectrum, Bispectrum, and Trispectrum on the Full Sky: Scalar Edition", (2023) (arXiv)
  2. Philcox, O. H. E., "Optimal Estimation of the Binned Mask-Free Power Spectrum, Bispectrum, and Trispectrum on the Full Sky: Tensor Edition", (2023) (arXiv)

List of papers using Polybin:

  1. Philcox, O. H. E., "Do the CMB Temperature Fluctuations Conserve Parity?", (2023) (arXiv)
  2. Philcox, O. H. E., Shiraishi, M., "Testing Parity Symmetry with the Polarized Cosmic Microwave Background", (2023) (arXiv)
  3. Philcox, O. H. E., Shiraishi, M., "Testing Graviton Parity and Gaussianity with Planck T -, E- and B-mode Bispectra", (2023) (arXiv)

polybin's People

Contributors

oliverphilcox avatar

Stargazers

Gabriel Missael Barco avatar Jinyi Liu avatar Benjamin Remy avatar Carl Haster avatar Yue Nan avatar Zhenyuan Wang avatar Kristen Surrao avatar Jaime Forero-Romero avatar

Watchers

James Cloos avatar  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.