SINFONI Pipeline Reference Manual  2.6.0
sinfo_wavecal.h
1 #ifndef SINFO_WAVECAL_H
2 #define SINFO_WAVECAL_H
3 /*
4  * This file is part of the ESO SINFONI Pipeline
5  * Copyright (C) 2004,2005 European Southern Observatory
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
20  */
21 /************************************************************************
22 * E.S.O. - VLT project
23 *
24 * "@(#) $Id: sinfo_wavecal.h,v 1.5 2007-06-06 07:10:46 amodigli Exp $"
25 *
26 * who when what
27 * -------- -------- ----------------------------------------------
28 * schreib 13/07/00 created
29 */
30 
31 /************************************************************************
32  * sinfo_wavecal.h
33  * routines needed for wavelength calibration
34  *----------------------------------------------------------------------
35  */
36 
37 /*
38  * header files
39  */
40 #include <cpl.h>
41 #include "sinfo_spectrum_ops.h"
42 
43 /*
44  * function prototypes
45  */
46 
57 cpl_image *
58 sinfo_new_wave_map_slit ( float ** acoefs,
59  int n_acoefs,
60  int n_rows,
61  int n_columns ) ;
62 
107 cpl_image *
108 sinfo_new_wave_cal(cpl_image * image,
109  FitParams ** par ,
110  float ** abuf,
111  int n_slitlets,
112  int ** row_clean,
113  float ** wavelength_clean,
114  int * n_found_lines,
115  float dispersion,
116  int halfWidth,
117  float minAmplitude,
118  float max_residual,
119  float fwhm,
120  int n_a_fitcoefs,
121  int n_b_fitcoefs,
122  float sigmaFactor,
123  float pixel_dist,
124  float pixel_tolerance ) ;
125 
126 
170  cpl_image * sinfo_new_spred_wave_cal(cpl_image * image,
171  FitParams ** par ,
172  float ** abuf,
173  int n_slitlets,
174  int ** row_clean,
175  float ** wavelength_clean,
176  int * n_found_lines,
177  float dispersion,
178  int halfWidth,
179  float minAmplitude,
180  float max_residual,
181  float fwhm,
182  int n_a_fitcoefs,
183  int n_b_fitcoefs,
184  float sigmaFactor,
185  float pixel_dist,
186  float pixel_tolerance,
187  float **sinfo_slit_pos ) ;
188 
189 
207 int
208 sinfo_new_check_for_fake_lines ( FitParams ** par,
209  float dispersion,
210  float ** wavelength_clean,
211  int ** row_clean,
212  int * n_found_lines,
213  int n_columns,
214  float pixel_tolerance ) ;
215 
216 
235 cpl_image *
236 sinfo_new_create_shifted_slit_wavemap (cpl_image * lineIm,
237  float ** coeffs,
238  int n_fitcoeffs,
239  float * wavelength,
240  float * intensity,
241  int n_lines,
242  int magFactor ) ;
266 cpl_image *
267 sinfo_new_create_shifted_slit_wavemap2 (cpl_image * lineIm,
268  float ** coeffs,
269  int n_fitcoeffs,
270  float * wavelength,
271  float * intensity,
272  int n_lines,
273  int magFactor,
274  float dispersion,
275  float pixel_dist ) ;
276 
277 
299 cpl_image *
300 sinfo_new_create_shifted_slit_wavemap3 (cpl_image * lineIm,
301  float ** coeffs,
302  int n_fitcoeffs,
303  float * wavelength,
304  float * intensity,
305  int n_lines,
306  int magFactor ) ;
307 
308 
329 float sinfo_new_check_line_positions ( cpl_image * lineIm,
330  float ** coeffs,
331  int n_fitcoeffs,
332  float guess_disp1,
333  FitParams ** par );
334 
360 float
361 sinfo_new_check_correlated_line_positions (cpl_image * lineIm,
362  float ** coeffs,
363  int n_fitcoeffs,
364  float * wavelength,
365  float * intensity,
366  int n_lines,
367  float fwhm,
368  float width,
369  float min_amplitude,
370  float dispersion,
371  FitParams ** par ) ;
372 
373 
374 
375 #endif