我想制作一个IPAC输出表(http://docs.astropy.org/en/v0.2.1/table/io.html)
我有两个数据列,ra和dec,这是两个numpy数组:
type(data['ra'])
numpy.ndarray
但是
data_out = (data['ra'], data['dec'])
data_out.write('data_out.tbl', format='ipac')
但接下来:
AttributeError: 'tuple' object has no attribute 'write'
目前没有回答
相关问题 更多 >
编程相关推荐