温度MCB#

class astropy.cosmology.traits.TemperatureCMB[源代码]#

基类:object

计算宇宙学背景温度的特性。

方法总结

Tcmb (z)

计算红移时的MCB温度 z .

方法文件

Tcmb(z: Quantity | Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]) Quantity[源代码]#

计算红移时的MCB温度 z .

参数:
z : Quantity-like ['redshift'], array_like类数量 ['redshift'] ,

输入红移。

在 7.0 版本发生变更: 不建议将z作为关键字参数传递。

返回:
Tcmb数量 [:ref: 'temperature']

MCB的温度。

实例

>>> import astropy.units as u
>>> from astropy.cosmology import Planck18, units as cu
>>> Planck18.Tcmb(u.Quantity([0.5, 1.0], cu.redshift))
<Quantity [4.08825, 5.451  ] K>
>>> Planck18.Tcmb(u.Quantity(0.5, ''))
<Quantity 4.08825 K>
>>> Planck18.Tcmb(0.5)
<Quantity 4.08825 K>
>>> Planck18.Tcmb([0.5, 1.0])
<Quantity [4.08825, 5.451  ] K>