Translating a 1d-spectrum in fits-format into ascii-files

Occasionally one would like to process 1d spectra in programs that cannot read fits formats (e.g. Excel). Then it is advantageous to have the spectra available as ascii files, e.g. tab-separated (.dat) or comma-separated (.csv).

This is done by the Python3 script fit_in_csv_and_dat.py. In the created dat- and csv-file there are two columns of floating point numbers (type float with dot as decimal sign), overwritten with ‚WAVE‘ and ‚FLUX‘.