Guest User

Untitled

a guest
Jan 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. from numpy import pi
  2. from astropy.cosmology import Planck15 # Use a Planck 2016 cosmology
  3. from astropy import units as u
  4. z = 2
  5. dA = Planck15.angular_diameter_distance(z) # Angular diameter distance
  6. d_com = 150 * u.Mpc # Comoving size of the BAOs
  7. d_phy = d_com / (1+z) # Physical size of BAO at z
  8. theta = d_phy / dA * u.rad # Angle covered by BAO in radians
  9. print('BAO size in degrees at z = '+str(z)+': ', theta.to(u.deg))
Add Comment
Please, Sign In to add comment