Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from numpy import pi
- from astropy.cosmology import Planck15 # Use a Planck 2016 cosmology
- from astropy import units as u
- z = 2
- dA = Planck15.angular_diameter_distance(z) # Angular diameter distance
- d_com = 150 * u.Mpc # Comoving size of the BAOs
- d_phy = d_com / (1+z) # Physical size of BAO at z
- theta = d_phy / dA * u.rad # Angle covered by BAO in radians
- print('BAO size in degrees at z = '+str(z)+': ', theta.to(u.deg))
Add Comment
Please, Sign In to add comment