Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. from astropy.visualization import astropy_mpl_style
  3. plt.style.use(astropy_mpl_style)
  4. from astropy.utils.data import get_pkg_data_filename
  5. from astropy.io import fits
  6. image_file = get_pkg_data_filename('814wmos.fits')
  7.  
  8. image_data = fits.getdata('814wmos.fits', ext=0)
  9. plt.figure()
  10. plt.imshow(image_data, cmap='gray')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement