FORS Data Reduction Software

[FORS page] [Landessternwarte] [FORS page] [pagina de ESO] [propaganda de ESO] [pagina de ESO - Cerro Paranal]


Thomas Szeifert; Landessternwarte; Königstuhl; 69117 Heidelberg
Mailto: tszeifer@eso.org

automatic data reduction software for FORS 2 in Echelle mode

The software is developed for focal reducers in Echelle mode with two grisms. To extend the software for other Echelle spectrographs using gratings like CASPEC or prisms as cross dispersers like FEROS, a routine is needed which calculates the approximate position of the spectrum for all orders for given wavelengths. All routines from the centering of the orders to the rebinning of the spectrum can be used without any major changed but possibly with minor modifications. Here we use test data taken with DFOSC with grisms 9 and 10. The execution time for the reduction batch is 1 minute 05 seconds on a 400MHz Pentium PC with fast SCSI disk, including the displaying of the data. A mimimum amount of 48MB RAM (2 images + operating system) is recommended.

finished work:

next work:

prototype version:


first results:

Routines to guess the location on the CCD of the orders and the wavelength are now coded and testet with DFOSC data. The figure shows the location of the Echelle orders estimated from the grism and camera parameters. The wavelength range between 4800,4900 and 6500,6600 ist marked in a different color for better orientation. In the expample the orders have been calculated for wavelength between 3800 and 10000 Å

[guess orders]

After a simple gaussian centering the y-positions of the orders can be fit very accurately as a function of x as the input for the later data reduction routines like the extraction of spectra. Here the orders were fit with an observed star, but for FORS2 we will do the centering with the spectrum of the internal flat field lamps through the pinhole.

[center orders]

Now the position of the lines from the wave length calibration lamps can be estimated with the corrected position in y and the forecasted positions in x. Here we used a Thorium Argon lamp in combination with a catalog for which we have selected the brightest lines only. Here the scale is different from the earlier figures. It seam to me that the focal length of the camera is longer then the value used for the calculation.

[guess lines]

The first step of the wavelength calibration was now to apply the global fit as a function of the x-position and the order only. After the first centering at the forecasted position and a second iteration of the line search with the new dispersion solution, we have already got a dispersion solution with a standard deviation of 0.11Å which is acceptable for almost all applications. All identified lines are marked blue, the white symbols are all lines of the input catalog. The input catalog should be better optimized for the spectral resolution of DFOSC.

[guess lines]

The residual deviation of the fit from the laboratory wave length show the good result. Red symbols denote lines which have been rejected as blends and wrong identifications. Many lines are not taken into account, because the input catalog was not well selected for intermediate resolution spectra

[guess lines]

The lines are now centered along the slit and again a residual of 0.11Å was obtained for the 3D-fit as a function of X, order and delta y. The parameters of the global solution in two dimensions were hold.

[guess lines]

The residuals of the 3D chi square optimization are presented in the next figure:

[guess lines]

With the known order positions the raw spectra of all orders can be extracted now. Note that the bad columns were not replaced yet. Here a simple linear rebin can be done because all pixels are shifted in y only

[guess lines]

The raw flat field can be normalized for the later reduction steps like the optimum extraction and the fit of the terrestric night sky lines.

[guess lines]

After the division by the normalized flat the sky can be subtracted either fitting polynoms or calculating the median over a window, on the part of the slit without light from the target. The next two figures show the rectified spectrum before and after the subtration of the night sky lines. The sky spectrum is calculated at the position of the raw spectrum, before rectifying the frames, similar to the normalized flat field

[frame before sky subtraction]

[frame before after sky subtraction]

Now the sky subtracted frame can be rebined to the same wavelength steps. Only the usefull part of the spectra is kept again

[rebined frame]

Finally the spectra of the single orders can be extracted now using a modified optimum extraction method which considers sub-pixel sampling effects. Note that the very strong cosmic along the spatial direction in order 12 was not removed. Below you see the rebinned spectra of the WR+O binary HD 5980 which showed a remarkable outburst several years ago. The spectrum was devided by the approximate blaze function, which was calculated for the flat field normalization. Note that the fringes were unexpectedly removed from the data, although no standard star observation was reduced yet.

[extracted spectra]

[extracted spectra]