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 |
---|---|
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 |
|
Calculate background cosmology using astropy |
|
Implement Tripathi, Sangwan, Jassal (2017) w(z) model |
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 |
---|---|
Modified Gravity Boltzmann and background integrator for BG, CMB, and matter power |
|
Modified version of CAMB to implement phenomenological modified gravity models |
|
Boltzmann and background integrator for BG, CMB, matter power, and more |
|
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 the non-linear, baryonified, matter power spectrum |
|
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 |
Structure¶
These modules compute aspects of cosmic structure, for example by integrating over cosmic structure, or calculating halo model quantities.
Name |
Purpose |
---|---|
Compute anisotropy dispersion sigma(R,z) |
|
returns growth factor and growth rate by examining small-scale P(k) |
|
Compute nonlinear weyl potential (and other) spectrum by multiplying the linear spectrum with matter_power_nl/matter_power_lin |
|
Apply a galaxy bias constant with k and z. |
|
Compute anisotropy dispersion sigma(R,z) in cpp |
|
Code to compute the PressSchechter mass function given Pk from CAMB, based on Komatsu’s CRL |
|
PDF of the maximum cluster mass given cosmological parameters |
|
Compute the non-linear matter power spectrum with pyhalofit |
|
Simple log-linear extrapolation of P(k) to high k |
|
Komatsu’s CRL code to compute the power spectrum using EH fitting formula. |
|
Code to compute the Tinker et al. 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 |
Two-point Mathemetics¶
These modules perform mathematical claculations associated with two-point statistics, mostly on a sphere.
Name |
Purpose |
---|---|
Calculate COSEBIs from C_ell power spectra |
|
Compute weak lensing C_ell from P(k,z) and MG D(k,z) with the Limber integral |
|
Compute correlation functions from power spectra |
|
Compute correlation functions xi+, xi-, w, and gamma_t from C_ell |
|
Project 3D power spectra to 2D tomographic bins using the Limber approximation |
|
Compute WL correlation functions xi+, xi- from C_ell |
|
Compute various weak lensing C_ell from P(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 |
---|---|
Modify a set of calculated shear C_ell with a multiplicative bias |
|
Add magnification terms to C_ell |
|
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. |
|
Generate galaxy power P(k) as though galaxies were unbiased DM tracers |
|
Apply baryonic effects to nonlinear pk based on hydrodynamic simulation measurements |
|
Apply minimum and maximum ell to cross-power spectra with CMB kappa. |
|
Sum together intrinsic aligments with shear signal |
|
Apply various astrophysical biases to the matter power spectrum P(k,z) |
|
Compute the terms P_II and P_GI which go into intrinsic aligment calculations |
Sample Properties¶
These modules compute properties, mostly number density, of galaxy samples.
Name |
Purpose |
---|---|
Compute window functions for photometric n(z) |
|
Modify a set of loaded n(z) distributions with a multiplicative or additive bias |
|
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, rank, and sample a set of density n(z) realisations from a FITS file |
|
Load a number density n(z) for weak lensing from a file |
|
Load a number density n(z) from a FITS file |
Likelihoods¶
These module provide likelihoods that compare theory predictions to data
Name |
Purpose |
---|---|
Likelihood of z=1.59 Cluster mass from Santos et al. 2011 |
|
Compute the likelihood of DES Y3 BAO data |
|
Compute the likelihood of eBOSS DR16 from QSO |
|
Compute the likelihood of supplied fsigma8(z=0.57), H(z=0.57), D_a(z=0.57), omegamh2, bsigma8(z=0.57) |
|
Generic 2-point measurement Gaussian likelihood |
|
Compute the likelihood against SDSS MGS data |
|
Likelihood of hubble parameter H0 from Riess et al 2.4% supernova sample |
|
Compute the likelihood of eBOSS DR16 from Lyman alpha |
|
Prior on sigma_8 * Omega_M ** 0.3 from Planck SZ cluster counts |
|
Compute the likelihood of eBOSS DR14 D_m and D_h from Lyman alpha |
|
Likelihood function of CMB from Planck 2015 data |
|
Likelihood of hubble parameter H0 from Riess et al supernova sample |
|
Compute the likelihood of the supplied expansion history against WiggleZ BAO data |
|
Likelihood function of CMB from WMAP |
|
Likelihood of the Pantheon supernova analysis |
|
Compute the likelihood of the supplied expansion and growth history against BOSS DR12 data |
|
Compute the likelihood of MGS BAO and FS as distributed by eBOSS DR16 |
|
Supernova likelihood for SDSS-II/SNLS3 |
|
Compute the likelihood of eBOSS DR14 D_v from QSO |
|
Compute the likelihood of the supplied expansion and growth history against BOSS DR12 data as reanalyzed by eBOSS DR16 |
|
Simple prior on Omega_b h^2 from light element abundances |
|
Compute the likelihood of supplied D_v or fsigma8(z=0.067) |
|
CMB Lensing from ACT DR6 data. |
|
Lightweight python-based Planck likelihood code |
|
Likelihood of galaxy cluster gas-mass fractions |
|
Compute the likelihood of eBOSS DR16 from LRG |
|
Compute the likelihood of eBOSS DR14 D_v from LRG |
|
Likelihood of the Pantheon+ supernova analysis optionally combined with the SH0ES H0 measurement |
|
Compute the likelihood of eBOSS DR16 from ELG |
|
Likelihood of Jullo et al (2012) measurements of a galaxy bias sample |
|
Likelihood of hubble parameter H0 from Riess et al supernova sample |
|
Massively simplified WMAP9 likelihood reduced to just shift parameter |
|
Compute the likelihood of the supplied CMB power spectra |
Misc & Utilities¶
These modules supply special utilities or calculation tools
Name |
Purpose |
---|---|
Compute various 1-loop perturbation theory quantities |
|
Rescale structure measures to use a specified sigma_8 |
|
Enters python debugger. |
|
Copy a section to a new section |
|
Compute consistent Helium fraction from baryon density given BBN |
|
Rename a section to a new name |
|
Include correlations between nusiance parameters |
|
Skip parameter sample without failing if w0+wa>0. |
|
Enters python debugger. |
|
Deduce missing cosmological parameters and check consistency |