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

结果:

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM