Handling 1d spectra in ASCII format

ASCII files (here value tables in text format) play an important role as data storage in many astronomical programs. A 1d spectrum in ASCII format consists of at least 2 columns, one for the wavelength, the second for the flux. There can be simple number columns (in decimal number format with a dot as decimal sign) without any heading, but they can also carry column headings.

How we can translate our fits-1d spectra into such ASCII tables in order to process them in another program (e.g. Excel, but also in Python scripts), we have already seen.

The conversion of such ASCII files into those with different separators between the columns can be done with many editors. Also the addition or removal of column headers. Both are therefore not explained further here. In Python there are of course also a lot of possibilities to read and change ascii-files.