Python me, dammit!
An astronomer trying to learn Python, blogging my progress to motivate myself and keep notes.
Wednesday, July 8, 2015
Reading a FITS file is easy
from astropy.io import fits
data, header = fits.getdata("input_file.fits", [extension number,] header=True)
Seriously, these two lines of code show why we should all be using Astropy.
#
Readytojointhecult
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment