Menu:


Update:

16th January 2024







  back 

This python program convert the standard output fits file into a in IRAF readable fits file.
Pipline version Python program
Version 1: con_to_iraf.py
Version 2 to 3.1: con_to_iraf_v31.py
Therefore, the wavelength grid is transformed in an uniform wavelength grid. Then, the data are adapted via interpolation on this new wavelength grid.
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: chmod +x con_to_iraf.py).

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

The syntax is:

./con_to_iraf.py

To start this program in python the syntax is:

execfile("con_to_iraf.py") or execfile("con_to_iraf_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. The program include two options. With the option "With global correction", the instrumental response function is used to correct the blaze normalised spectrum. With the option "With small scale correction", the small scale variations in the spectrum (ripples) are tried to corrected. At the page Response curve under TIGRE User / Spectrograph more Info's available.
For an individual order:

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

For the merged spectrum:

          1 row: Merged blaze normalised spectrum
          2 row: Error of the merged blaze normalised spectrum
          3 row: Merged normalised spectrum
          4 row: Error of the merged normalised spectrum