next up previous contents
Next: Site testing Up: GIANO: An ultra-stable IR Previous: GIANO Control Software   Contents

GIANO Data Reduction Software

The Giano Data Reduction Software (hereafter DrG) has been designed to run on different Unix/Linux platforms and relies on utilities available under the Unix public domain software. All data flow is through FITS and ASCII formats. The DrG back end has been entirely written in C99. We also plan to release a command-line version working in unattended automatic mode.

The DrG package will be provided with makefiles generated by Gnu automake and a configure script generated by Gnu autoconf. A small number of external libraries will be needed:

DrG back end

GIANO is an instrument with few observing modes, each of them producing quite a constant and repeatable distribution of light on the array. This allows to develop a highly optimized code: 2 main setups will be available for the high and low resolution, respectively. The DrG modules will be grouped in a few major tasks.

Automatic Wavelength calibration

Wavelength calibration of echelle spectra usually requires the manual identification of a few lines from a calibration lamp exposure on at least three orders well distributed along the echellogram. By using a suitable atlas of spectral lines it is possible to compute a starting guess for the dispersion relation and iteratively refine it by adding more and more lines to the fitting process. Then a global dispersion formula can be fitted to combine the whole set of orders (in this way it is possible to get a more robust fit where only a few lines are visible, as in the red side of spectra).

At present the astronomical community seems to still lack a general software able to perform a wavelength calibration without predefined solutions or user interaction. This puts serious limits on the development of data reduction pipelines working in a completely unattended mode. With Giano DRS we have tried to overcome this lack, by developing a program that uses a starting guess for the order dispersion model which is accurate enough to achieve a good calibration without any user action. This is possible by making use of WCSLIB, a library developed by Mark Calabretta at the Australia Telescope National Facility to handle coordinate systems within FITS standards. According to the definitions in Greisen et al. 2006, we set:

$p$: Pixel coordinate (abscissa)

$q$: Intermediate pixel coordinate

$q1$: Corrected intermediate pixel coordinate

$x$: Intermediate world coordinate

$s$: World coordinate

where:

$q = p - {\rm CRPIX}_m$

$q1 = c_0 + c_1 \times q + c_2 \times q^2 + c_3 \times q^3 + \ldots$

$x = q1 \times {\rm CDELT}_m$

and CRPIX$_m$, CDELT$_m$ are the standard FITS keywords. Transformation from $x$ to $s$ (and back) is computed using spcx2s and spcs2x WCSLIB modules: these routines compute physical relations applicable for the dispersers commonly used in astronomical spectrographs to define a world coordinate function and derive spectral coordinates. The relation applies to the simple case of a single disperser and under the assumption that the radiation enters perpendicular to it. The requested physical parameters for such a transformation are the grating ruling density $\sigma $, the order number $m$, the angle of incidence $\beta$ and the CRVAL$_m$ ($\lambda$ value at reference point). For each order the following starting conditions are adopted:

\begin{displaymath}
q1 = q,
\end{displaymath} (1)


\begin{displaymath}
{\rm CRVAL}_m = \frac{2.0 \times \sigma \times \sin (\beta) \times \cos (\gamma)}{m},
\end{displaymath} (2)


\begin{displaymath}
{\rm CDELT}_m = \frac{\cos (\beta) \times \cos (\gamma)^2 \times \sigma \times {\rm pix\_size}}{f_{cam} \times m},
\end{displaymath} (3)

where $\rm pix\_size$ and $f_{cam}$ denote the detector pixel size and the camera focal length respectively. The 1st relation comes from the expected blaze wavelength, the 2nd from the expected linear dispersion at the central wavelength.

At a first stage, for each order the task looks for the CRPIX$_m$ value which maximizes the number of matches between observed and library lines. The linearity of the relations $m \times {\rm CRVAL}_m$ vs. $m$ and $m \times {\rm CDELT}_m$ vs. $m$ is used to distinguish each time well fitted orders from bad ones. In the second stage, the relation CRVAL$_m$ vs. $m$ is definitively fixed and the task proceeds to find order by order CRPIX$_m$ values and polynomial coefficents $c_0, c_1, \ldots, c_n$, progressively involving lines from the ends of the orders, where deviations from linearity are more severe, and increasing the degree of the polynomals. Much care has been used to avoid the incidence of false line matches as much as possible. Correctly modelled orders are used to derive a global dispersion relation which is suitable for all missing orders.

Some tests have been performed on data collected from different spectrographs, namely SARG, FEROS and NIRSPEC: the residuals of the wavelength calibrations showed a $\rm rms \approx 0.2 \div 0.23$ pixel, corresponding to $\rm rms \approx 0.009 \div 0.01$ Å.


next up previous contents
Next: Site testing Up: GIANO: An ultra-stable IR Previous: GIANO Control Software   Contents
marco lolli 2007-10-16