IPAC中的Python表输出

2024-10-02 16:27:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我想制作一个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'


Tags: ioorgnumpyhttpdocsdatatableout