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()

结果:

猜你喜欢

转载自www.cnblogs.com/gegemu/p/9952541.html