We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Currently hosted on AstroBetter
Example entry here:
READCOL
There are several ways to read in ASCII data in Python. For very simple tables, you can use Numpy's loadtxt:
loadtxt
import numpy as np wav, flux = np.loadtxt('spectrum.txt', unpack=True)
For standard ASCII table formats (CSV, CDS tables, DAOPhot tables, IPAC tables, etc.) you can make use of Astropy's astropy.io.ascii module:
astropy.io.ascii
from astropy.io.ascii import read tab = read('spectrum.csv')