讀取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()
結果:
讀取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刪除。