redshift_temperature#
- astropy.cosmology.units.redshift_temperature(cosmology=None, **atzkw)[源代码]#
在红移和CMB温度之间换算量。
应注意不要将相对论红移、引力红移等误解为宇宙学红移。
- 参数:
- cosmology :
Cosmology
,str
,或None
,可选宇宙学,python:str,或python:无,可选 宇宙学实现或内置的宇宙学名称(例如‘Planck18’)。如果没有,将使用默认的宇宙学(由控制
default_cosmology
)。- **atzkw
的关键字参数
z_at_value()
- cosmology :
- 返回:
Equivalency
红移与温度的等价性。
实例
>>> import astropy.units as u >>> import astropy.cosmology.units as cu >>> from astropy.cosmology import WMAP9
>>> z = 1100 * cu.redshift >>> z.to(u.K, cu.redshift_temperature(WMAP9)) <Quantity 3000.225 K>