Skip to main content

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 xpol [--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 !

Metadata

Release files for xpol 1.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xpol 1.8.0
File Size Uploaded
xpol-1.8.0.tar.gz 573.9 kB Details

Release files / xpol-1.8.0.tar.gz

Download URL xpol-1.8.0.tar.gz
Size 573.9 kB
Tags Source
SHA-256 checksum
How to use checksums
11766b121be7b8b6a5bac12fc15ee53608b8cfc6019ffb99d58ce36a2cb5f1b2
BLAKE2b-256 checksum
How to use checksums
3c21078275aa364e2bb177612092f87babe0c5584f318da78affef17e631d885
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.8.0 This release

1 release file

1.7.0

1 release file

1.6.1

2 release files

1.6.0

1 release file

1.5.2

1 release file

1.5.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page