【Python 天文】宇宙学参数以及距离换算

 

>>> from astropy.cosmology importWMAP9 ascosmo
>>>cosmo.H(0) 
<Quantity 69.32 km / (Mpc s)>

>>>

>>> cosmo.kpc_proper_per_arcmin(3)  
<Quantity 472.97709620405266 kpc / arcmin>

cosmo.luminosity_distance(0.23).value   -----Mpc

A.value   得到不带单位的数字

 

TBD

posted @ 2018-09-13 16:23  苏子柒  阅读(860)  评论(0编辑  收藏  举报