Some other utilities will be provided, such a general purpose command-line FITS calculator to allow the user to easily do arithmetic computation of arbitrarily complexity between any wished number of FITS images, by also including computation of averages, weighted averages, median etc.
Automatic Wavelength calibration
Wavelength calibration of echelle spectra usually demands to identify manually 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, like in the red side of spectra).
At present the astronomical community seems still lacking a general software able to perform a wavelength calibration without predefined solutions or user interaction. This puts serious limits to the development of data reduction pipelines working in a completely unattended mode. With Giano DRS we have tried to overcome this lack developing a program that uses a starting guess for order dispersion model enough accurate 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. Accordingly 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:
and
,
are the standard FITS keyword.
Transformation from x to s (and back) is computed using spcx2s() and spcs2x() WCSLIB modules:
these routines compute physical relation 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
, the order number m,
the angle of incidence
and the
(
value at reference point).
For each order the following starting conditions are adopted:
| (1) |
| (2) |
![]() |
(3) |
At a first stage, for each order the task looks for the
value which maximizes the number
of matches between observed and library lines. Linearity of relations
and
is used to distinguish each time well
fitted orders from bad ones.
In the second stage, the relation
is definitively fixed and the task proceeds to
find order by order
values and polynomial coefficients
,
progressively involving lines from the ends of the orders, where deviations from linearity are more
severe, and increasing the degree of polynomials. Much care has been put to avoid the incidence of
false line matches as much as possible.
Orders correctly modelled are used to derive a global dispersion relation which is suitable to derive
an accurate dispersion relation for all missing orders.
As an example, Fig.
shows the residuals of the wavelength
calibrations for two different spectrographs,
namely SARG and FEROS. In both cases the
is
,
corresponding to
Å.