本文整理汇总了Python中astropy.table.QTable.source方法的典型用法代码示例。如果您正苦于以下问题:Python QTable.source方法的具体用法?Python QTable.source怎么用?Python QTable.source使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类astropy.table.QTable
的用法示例。
在下文中一共展示了QTable.source方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: QTable
# 需要导入模块: from astropy.table import QTable [as 别名]
# 或者: from astropy.table.QTable import source [as 别名]
# temperature - 10^6 K
_temperature = [15.513, 15.48, 15.36, 14.404,
13.37, 12.25, 10.53, 9.30, 8.035,
7.214, 6.461, 5.531, 4.426, 2.981,
2.035, 0.884, 0.1818, 0.005770] * u.MK
# density - g cm^-3
_density = [147.74, 146.66, 142.73, 116.10, 93.35,
72.73, 48.19, 34.28, 21.958, 15.157,
10.157, 5.566, 2.259, 0.4483, 0.1528,
0.042, 0.00361, 1.99e-7] * u.g*u.cm**-3
_d = {'radius': _radius, 'mass': _mass, 'luminosity': _luminosity,
'temperature': _temperature, 'density': _density}
interior = QTable(_d)
interior.source = 'Turck-Chieze et al. (1988)'
interior.add_index('radius')
# time - 10^9 years
_time = [0, 0.143, 0.856, 1.863, 2.193, 3.020,
3.977, 4.587, 5.506, 6.074, 6.577, 7.027,
7.728, 8.258, 8.7566, 9.805] * u.Gyr
# luminosity - L_sun
_tluminosity = [0.7688, 0.7248, 0.7621, 0.8156,
0.8352, 0.8855, 0.9522, 1.0, 1.079,
1.133, 1.186, 1.238, 1.318, 1.399,
1.494, 1.760] * u.Lsun
# radius - R_sun
_tradius = [0.872, 0.885, 0.902, 0.924, 0.932,