# Read in the fits table you want to append
table = Table.read(input_file, format='fits')
# Read in the large table you want to append to
base_table = Table.read('base_file.fits', format='fits')
# Use Astropy's 'vstack' function and overwrite the file
concat_table = vstack([base_table,append_table])
concat_table.write('base_file.fits', format='fits', overwrite=True)
所以我现在可以用了。我基本上就是这么做的:
在我的例子中,每个表的所有列都是相同的。所以我只是循环浏览所有的fits文件,然后一次附加一个。可能还有其他方法,但我发现这是最简单的。你知道吗
相关问题 更多 >
编程相关推荐