Skip to main content

XPOL cross power-spectrum estimator

Project description

A code to compute angular power spectra based on cross-correlation between maps and covariance matrices.

This is the generalisation to polarisation of Tristram M. et al., 2005 MNRAS 358 833

Install Python

The easiest way to install Xpol is via pip

pip install pspy [--user]

If you plan to develop the code, it is better to clone the repository

git clone https://gitlab.in2p3.fr/tristram/Xpol.git /where/to/clone

and install the python library

pip install -e /where/to/clone

The -e option allow the developer to make changes within the Xpol directory without having to reinstall at every changes. If you plan to just use the code and do not develop it, you can remove the -e option.

You can find a example of the module usage in test/script_xpol.py

Install C

The code is in C, fully MPI parallelized in CPU and memory (using spherical transform by s2hat).

Librairies needed are :

In addition you will need some BLAS/LAPACK optimized routines (MKL, NAG, …)

Equations

wiki is here

Usage

You can use the python class (Xpol) to compute spectra based on a data.

import xpol
binning = xpol.Bins( lmins, lmaxs)
xp = xpol.Xpol( mask, bins=binning)
pcl,cl = xp.get_spectra( dT)

see the file examples/script_xpol.py for more detailed usage.

For intensive computation and simulation you can alternatively use the MPI C version with a parameter file detailed here

References

Xpol have been used to derive power spectra for:

  • Archeops

    • CMB power spectra [Tristram+2005, A&A 436 785]

    • Dust power spectra [Ponthieu+2005, A&A 444 327]

  • Planck:

    • CMB power spectra [Planck 2015 results. XI, Couchot+2015]

    • Dust power spectra [Planck Intermediate Paper XXX]

    • CIB power spectra [Planck 2013 results. XXX]

    • SZ power spectra [Planck 2013 results. XXI, Planck 2015 results XXII]

    • SZ-CIB cross-power spectra [Planck 2015 results. XXIII]

And many others !

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xpol-1.6.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xpol-1.6.1-py3.9-linux-x86_64.egg (102.4 kB view details)

Uploaded Egg

File details

Details for the file xpol-1.6.1.tar.gz.

File metadata

  • Download URL: xpol-1.6.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.7

File hashes

Hashes for xpol-1.6.1.tar.gz
Algorithm Hash digest
SHA256 4cf74c2efe8f8cecbd03728b6165754bc39326b47532783fbca1703276eabaaa
MD5 a5c853f0fb90c3c556eadc46f25f6b1c
BLAKE2b-256 6872657e131288bb2c79c78586938fd5e1bdc0780d6e0c27b35fbfc9acbf183b

See more details on using hashes here.

File details

Details for the file xpol-1.6.1-py3.9-linux-x86_64.egg.

File metadata

  • Download URL: xpol-1.6.1-py3.9-linux-x86_64.egg
  • Upload date:
  • Size: 102.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.1

File hashes

Hashes for xpol-1.6.1-py3.9-linux-x86_64.egg
Algorithm Hash digest
SHA256 f83a4985d05c1da07fd9c6d2c01921b9528c054d051c40153a39b7641d3b3582
MD5 ddb5fae3fe6417ecb73115a10c7223de
BLAKE2b-256 862754c1817677ae692acd7ac93539e579effef9a584ea0987008508fd2a50c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page