Skip to content

Instantly share code, notes, and snippets.

@xuhdev
Last active August 29, 2015 14:00
Show Gist options
  • Save xuhdev/0ba875da1bfcafecacfe to your computer and use it in GitHub Desktop.
Save xuhdev/0ba875da1bfcafecacfe to your computer and use it in GitHub Desktop.
Convert an ascii table to a fits table
# convert an ascii table to a fits table
from astropy.table import Table
import sys
t = Table.read(sys.argv[1], format='ascii')
t.write(sys.argv[2], format='fits')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment