Python--显示fits文件

读取fits文件后想要显示fits文件中的内容,主要的链接:http://www.astropy.org/astropy-tutorials/FITS-images.html

读取的fits中的数据:image_data

import matplotlib.pyplot as plt

plt.imshow(image_data, cmap='gray')
plt.colorbar()
plt.show()

结果:

 

posted @ 2018-11-13 15:40  格格木miss  阅读(2034)  评论(0编辑  收藏  举报