Standard Library Overview
The CosmoSIS standard library is a collection of modules designed for Cosmological parameter estimation. You can couple together pieces of it to build analysis piplines.
Background
These modules calculate quantities related to the average background expansion of the Universe.
Name |
Purpose |
|---|---|
Calculate background cosmology using astropy |
|
Output cosmological distance measures for dynamical dark energy |
|
returns linear growth factor and growth rate for flat cosmology with either const w or variable DE eos w(a) = w + (1-a)*wa |
|
Implement Tripathi, Sangwan, Jassal (2017) w(z) model |
|
Rescale computed distances to be consistent with a given value of R_d * h |
Baryons
These modules modify matter power spectra to account for the effects of baryonic physics.
Name |
Purpose |
|---|---|
Modify the non-linear matter power spectrum using the A_mod phenomenological parameterization |
|
Apply baryonic effects to nonlinear pk based on hydrodynamic simulation measurements |
|
Apply baryonic feedback effects to matter power spectrum using OWLS simulations |
Boltzmann
Boltzmann codes evolve cosmic perturbations from the early Universe through recombination and to late times, and power spectra of matter, the CMB, and other quantities.
Name |
Purpose |
|---|---|
Boltzmann and background integrator for BG, CMB, and matter power |
|
Boltzmann and background integrator for BG, CMB, matter power, and more |
|
Modified version of CAMB to implement phenomenological modified gravity models |
|
Modified Gravity Boltzmann and background integrator for BG, CMB, and matter power |
Emulators
These modules emulate aspects of cosmic structure based on fits to simulations.
Name |
Purpose |
|---|---|
Emulate N-body simulations to compute nonlinear matter power |
|
Emulate the boost factors that convert the linear to non-linear power spectrum, including baryon corrections |
|
Emulate N-body simulations to compute nonlinear matter power |
|
Emulate the non-linear, baryonified, matter power spectrum |
Structure
These modules compute aspects of cosmic structure, for example by integrating over cosmic structure, or calculating halo model quantities.
Name |
Purpose |
|---|---|
Komatsu’s CRL code to compute the power spectrum using EH fitting formula. |
|
PDF of the maximum cluster mass given cosmological parameters |
|
Compute nonlinear weyl potential (and other) spectrum by multiplying the linear spectrum with matter_power_nl/matter_power_lin |
|
Code to compute the PressSchechter mass function given Pk from CAMB, based on Komatsu’s CRL |
|
Code to compute the Sheth-Tormen mass function given Pk from CAMB, based on Komatsu’s CRL |
|
Code to compute the Tinker et al. mass function given Pk from CAMB, based on Komatsu’s CRL |
|
Apply a galaxy bias constant with k and z. |
|
returns growth factor and growth rate by examining small-scale P(k) |
|
Simple log-linear extrapolation of P(k) to high k |
|
Compute anisotropy dispersion sigma(R,z) in cpp |
|
Compute anisotropy dispersion sigma(R,z) |
Two-point Mathemetics
These modules perform mathematical claculations associated with two-point statistics, mostly on a sphere.
Name |
Purpose |
|---|---|
Compute correlation functions xi+, xi-, w, and gamma_t from C_ell |
|
Transform angular power spectra C_ell to real-space correlation functions |
|
Compute WL correlation functions xi+, xi- from C_ell |
|
Compute correlation functions from power spectra |
|
Calculate COSEBIs from C_ell power spectra |
|
Compute eta parameter for HMCode based on concentration amplitude A |
|
Project 3D power spectra to 2D tomographic bins using the Limber approximation |
|
Compute various weak lensing C_ell from P(k,z) with the Limber integral |
|
Compute weak lensing C_ell from P(k,z) and MG D(k,z) with the Limber integral |
Two-point Systematics
These modules compute and apply quantities associated with systematics errors on two-point (and potentially other) quantities.
Name |
Purpose |
|---|---|
Add point mass contributions to galaxy-galaxy lensing (gamma_t) signal |
|
Sum together intrinsic aligments with shear signal |
|
Add magnification terms to C_ell |
|
Model additive systematic errors for HSC cosmic shear analysis |
|
Apply various astrophysical biases to the matter power spectrum P(k,z) |
|
Apply galaxy bias on a per-bin basis to galaxy power spectra |
|
Compute galaxy bias as function of k, z for 3-parameter Clerkin et al 2014 model |
|
Apply a galaxy bias constant with k and z. |
|
Add redshift dependence to IA model |
|
Apply smoothing function to cross-correlations with CMB kappa in harmonic space. |
|
Apply minimum and maximum ell to cross-power spectra with CMB kappa. |
|
Compute the terms P_II and P_GI which go into intrinsic aligment calculations |
|
Generate galaxy power P(k) as though galaxies were unbiased DM tracers |
|
Modify a set of calculated shear C_ell with a multiplicative bias |
|
Compute intrinsic alignment power spectra using Tidal Alignment + Tidal Torquing model |
Sample Properties
These modules compute properties, mostly number density, of galaxy samples.
Name |
Purpose |
|---|---|
Calculate the gradient of the galaxy luminosity function at the limiting magnitude of the survey. |
|
Compute Gaussian n(z) window functions for weak lensing bins |
|
Load a number density n(z) for weak lensing from a file |
|
Load a number density n(z) from a FITS file |
|
Load number density n(z) from a SACC file for weak lensing |
|
Load, rank, and sample a set of density n(z) realisations from a FITS file |
|
Modify a set of loaded n(z) distributions with a multiplicative or additive bias |
|
Apply photometric redshift systematic biases to n(z) distributions |
|
Compute window functions for photometric n(z) |
CMB Likelihoods
These modules provide likelihoods that compare theory predictions to CMB data
Name |
Purpose |
|---|---|
Compute the likelihood of the supplied CMB power spectra |
|
CMB Lensing from ACT DR6 data. |
|
Full Multi-Frequency primary CMB from ACT DR6 data including systematics and foregrounds. |
|
Foreground-marginalised primary CMB (CMB-only) from ACT DR6 data. |
|
Interface with candl. |
|
Likelihood of the Planck high-ell data from the NPIPE re-analysis, using the Hillipop likelihood code. |
|
Likelihood of the Planck low-ell data polarizaton data from the PR4 analysis, using the Lollipop likelihood code. |
|
Likelihood function of CMB from Planck 2015 data |
|
Planck NPIPE CMB lensing likelihood |
|
Lightweight python-based Planck likelihood code |
|
Prior on sigma_8 * Omega_M ** 0.3 from Planck SZ cluster counts |
|
Likelihood function of CMB from WMAP |
|
Massively simplified WMAP9 likelihood reduced to just shift parameter |
BAO Likelihoods
These modules provide likelihoods that compare theory predictions to BAO data
Name |
Purpose |
|---|---|
Compute the likelihood of supplied D_v or fsigma8(z=0.067) |
|
Compute the likelihood of supplied fsigma8(z=0.57), H(z=0.57), D_a(z=0.57), omegamh2, bsigma8(z=0.57) |
|
Compute the likelihood of the supplied expansion history against WiggleZ BAO data |
|
Compute the likelihood of the supplied expansion and growth history against BOSS DR12 data |
|
Compute the likelihood of the supplied expansion and growth history against BOSS DR12 data as reanalyzed by eBOSS DR16 |
|
Compute the likelihood of DES Y3 BAO data |
|
Compute the likelihood of DES Y6 BAO data |
|
Compute the likelihood of DES Y6 BAO data using individual redshift bins |
|
DESI BAO likelihood from DR1 data |
|
DESI BAO likelihood from DR1 data |
|
DESI BAO likelihood from DR2 data |
|
Compute the likelihood of eBOSS DR14 D_m and D_h from Lyman alpha |
|
Compute the likelihood of eBOSS DR16 from ELG |
|
Compute the likelihood of eBOSS DR16 from LRG |
|
Compute the likelihood of eBOSS DR16 from Lyman alpha |
|
Compute the likelihood of eBOSS DR16 from QSO |
|
Compute the likelihood of eBOSS DR14 D_v from LRG |
|
Compute the likelihood of MGS BAO and FS as distributed by eBOSS DR16 |
|
Compute the likelihood against SDSS MGS data |
|
Compute the likelihood of eBOSS DR14 D_v from QSO |
Supernova Likelihoods
These modules provide likelihoods that compare theory predictions to supernova data
Name |
Purpose |
|---|---|
Compute the likelihood of DES Y5 Supernova data |
|
Supernova likelihood for SDSS-II/SNLS3 |
|
Likelihood of the Pantheon supernova analysis |
|
Likelihood of the Pantheon+ supernova analysis optionally combined with the SH0ES H0 measurement |
|
SALT2 supernova distance modulus likelihood |
Cepheid Likelihoods
These modules provide likelihoods that compare theory predictions to Cepheid data
Name |
Purpose |
|---|---|
Likelihood of hubble parameter H0 from Riess et al supernova sample |
|
Likelihood of hubble parameter H0 from Riess et al 2.4% supernova sample |
|
Likelihood of hubble parameter H0 from Riess et al supernova sample |
Lensing and Clustering Likelihoods
These modules provide likelihoods that compare theory predictions to weak lensing and clustering data
Name |
Purpose |
|---|---|
Generic 2-point measurement Gaussian likelihood |
|
Likelihoods of the HSC Year 3 cosmic shear data |
|
Generic 2-point measurement Gaussian likelihood using sacc format |
|
Generate a simple 2pt likelihood given data, theory and covariance with no cuts |
Strong Lensing Likelihoods
These modules provide likelihoods that compare theory predictions to strong lensing data
Name |
Purpose |
|---|---|
Balmes & Corasaniti 2012 H0 Measurement likelihood |
|
H0licow 2019 strong lensing likelihood |
|
Time delay likelihood for strong lensing systems from COSMOGRAIL 2017 |
|
Likelihood of the TDCOSMO analyses |
Other Likelihoods
These module provide likelihoods that compare theory predictions to other data
Name |
Purpose |
|---|---|
Simple prior on Omega_b h^2 from light element abundances |
|
Likelihood of z=1.59 Cluster mass from Santos et al. 2011 |
|
Likelihood of Jullo et al (2012) measurements of a galaxy bias sample |
|
Likelihood of galaxy cluster gas-mass fractions |
Misc & Utilities
These modules supply special utilities or calculation tools
Name |
Purpose |
|---|---|
Compute consistent Helium fraction from baryon density given BBN |
|
Deduce missing cosmological parameters and check consistency |
|
Copy a section to a new section |
|
Include correlations between nusiance parameters |
|
Enters python debugger. |
|
Compute various 1-loop perturbation theory quantities |
|
Randomly fail pipeline runs for testing purposes |
|
Rename a section to a new name |
|
Rescale structure measures to use a specified sigma_8 |
|
Enters python debugger. |
|
Skip parameter sample without failing if w0+wa>0. |
Others
Modules that may be obsolete or only useful for a very specific project
Name |
Purpose |
|---|---|
Combine red and blue galaxy intrinsic alignment signals based on color fractions |
|
Select intrinsic alignment parameters from suffixed versions |
|
Interface to cosmopower emulators for fast cosmological calculations, a drop-in replacement for camb. |
|
Compute Delta n(z) window functions for weak lensing bins |
|
Compute the likelihood of DES Y6 BAO data removing the DESI-DR1 area. This likelihood is meant to be combined with DESI DR1 or DR2 BAO, but not with future DESI releases. |
|
Replace CMB power spectra with fiducial values from data files |
|
Flexible intrinsic alignment implementation using grid-based bias model |
|
Generate observable C_ell from theoretical power spectra including systematic effects |
|
adds mass dependence to IA, with a linear equation |
|
Predict 1pt observable functions to the final n(z) convolved form |