Skip to content

Instantly share code, notes, and snippets.

@smsharma
Created May 11, 2020 18:57
Show Gist options
  • Save smsharma/7cd9d3b728a0988ddd2f5c9f6f6337f5 to your computer and use it in GitHub Desktop.
Save smsharma/7cd9d3b728a0988ddd2f5c9f6f6337f5 to your computer and use it in GitHub Desktop.
from astropy.cosmology import FlatLambdaCDM
import astropy.units as u
planck18_cosmology = {'Oc0': 0.2607,
'Ob0': 0.04897,
'Om0': 0.3111,
'H0': 67.66,
'n': 0.9665,
'sigma8': 0.8102,
'tau': 0.0561,
'z_reion': 7.82,
't0': 13.787,
'Tcmb0': 2.7255,
'Neff': 3.046,
'm_nu': [0., 0., 0.06],
'z_recomb': 1089.80,
'reference': "Planck 2018 results. VI. Cosmological Parameters, "
"A&A, submitted, Table 2 (TT, TE, EE + lowE + lensing + BAO)"
}
Planck18 = FlatLambdaCDM(H0=planck18_cosmology['H0'],
Om0=planck18_cosmology['Om0'],
Tcmb0=planck18_cosmology['Tcmb0'],
Neff=planck18_cosmology['Neff'],
Ob0=planck18_cosmology['Ob0'], name="Planck18",
m_nu=u.Quantity(planck18_cosmology['m_nu'], u.eV))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment