Skip to content

Instantly share code, notes, and snippets.

@astrofrog astrofrog/
Created Aug 18, 2013

What would you like to do?
Convert Kenny Wood's output images into FITS using Python
# Requires the following Python packages:
# -
# -
# Ask Tom Robitaille if you need help installing these
from import fits
from fortranfile import FortranFile
f = FortranFile('fimage.dat')
image = f.readReals().reshape(200,200)
fits.writeto('fimage.fits', image)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.