Menu:


Update:

16. Januar 2024







  back 

This python program convert the standard output fits file into a in ASCII file.
Pipline version Python program
Version 1: con_to_ascii.py
Version 2: con_to_ascii_v2.py
With this program, one can select an individual order or the merged spectrum. This program can be started from the shell or in python. In the shell, the program has to be executable (with e.g.: chmod +x con_to_ascii.py).

Note: This program needs the python program readData.py or readData_v2.py (under Read the data)!

The syntax is:

./con_to_ascii.py or ./con_to_ascii_v2.py

To start this program in python, the syntax is:

execfile("con_to_ascii.py") or execfile("con_to_ascii_v2.py")

The program is in principle self-explaining. The format of the output file depends on whether one select an individual order or the total spectrum.
For an individual order:

          1 col: Wavelength
          2 col: Blaze normalised spectrum
          3 col: Signal to noise of the spectrum
          4 col: Blaze function (flat field spectrum)

For the merged spectrum:

          1 col: Merged wavelength
          2 col: Merged blaze normalised spectrum
          3 col: Error of the merged blaze normalised spectrum
          4 col: Merged normalised spectrum
          5 col: Error of the merged normalised spectrum
          6 col: Instrumental response function
          7 col: Small scale correction