pyCE.cosmology.data package
Module contents
Access to CMB angular power spectrum data.
Loads observed angular power spectra either from the bundled WMAP 9-year
files (in the wmap/ subdirectory of this package) or by downloading the
Planck release-2 products from IRSA over the network.
- pyCE.cosmology.data.read_power_spectrum(telescope='Planck', ps='TT', psType='data')[source]
Read a CMB angular power spectrum.
- Parameters:
telescope (str) – ‘Planck’ (downloaded from IRSA; requires network access) or ‘WMAP’ (9-year data bundled with the package).
ps (str) – Which spectrum to read. Currently only ‘TT’ is implemented.
psType (str) – ‘data’ for the observed spectrum, or ‘fit’/’bestfit’ for the Planck best-fit theory spectrum (Planck only).
- Returns:
Keys ‘ell’, ‘Dl’, ‘Cl’ (with Cl = 2*pi*Dl/(ell*(ell+1))), and, for psType=’data’, ‘error’. Prints a message and returns None if the read fails.
- Return type: