sinfo_wavecal.h

00001 #ifndef SINFO_WAVECAL_H
00002 #define SINFO_WAVECAL_H
00003 /*
00004  * This file is part of the ESO SINFONI Pipeline
00005  * Copyright (C) 2004,2005 European Southern Observatory
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00020  */
00021 /************************************************************************
00022 * E.S.O. - VLT project
00023 *
00024 * "@(#) $Id: sinfo_wavecal.h,v 1.5 2007/06/06 07:10:46 amodigli Exp $"
00025 *
00026 * who       when      what
00027 * --------  --------  ----------------------------------------------
00028 * schreib  13/07/00  created
00029 */
00030 
00031 /************************************************************************
00032  * sinfo_wavecal.h
00033  * routines needed for wavelength calibration
00034  *----------------------------------------------------------------------
00035  */
00036 
00037 /*
00038  * header files
00039  */
00040 #include <cpl.h>
00041 #include "sinfo_spectrum_ops.h"
00042 
00043 /*
00044  * function prototypes
00045  */
00046 
00057 cpl_image * 
00058 sinfo_new_wave_map_slit ( float ** acoefs,
00059                          int      n_acoefs,
00060                          int      n_rows,
00061                          int      n_columns ) ;
00062 
00107 cpl_image * 
00108 sinfo_new_wave_cal(cpl_image   * image,
00109                     FitParams ** par ,
00110                     float     ** abuf,
00111                     int          n_slitlets,
00112                     int       ** row_clean,
00113                     float     ** wavelength_clean,
00114                     int        * n_found_lines,
00115                     float        dispersion,
00116                     int          halfWidth,
00117                     float        minAmplitude,
00118                     float        max_residual,
00119                     float        fwhm,
00120                     int          n_a_fitcoefs,
00121                     int          n_b_fitcoefs,
00122                     float        sigmaFactor,
00123                     float        pixel_dist,
00124             float        pixel_tolerance ) ;
00125 
00126 
00170  cpl_image * sinfo_new_spred_wave_cal(cpl_image   * image,
00171                      FitParams ** par ,
00172                      float     ** abuf,
00173                      int          n_slitlets,
00174                      int       ** row_clean,
00175                      float     ** wavelength_clean,
00176                      int        * n_found_lines,
00177                      float        dispersion,
00178                      int          halfWidth,
00179                      float        minAmplitude,
00180                      float        max_residual,
00181                      float        fwhm,
00182                      int          n_a_fitcoefs,
00183                      int          n_b_fitcoefs,
00184                      float        sigmaFactor,
00185                      float        pixel_dist,
00186                      float        pixel_tolerance,
00187                      float **sinfo_slit_pos ) ;
00188 
00189 
00207 int 
00208 sinfo_new_check_for_fake_lines ( FitParams ** par,
00209                        float        dispersion,
00210                         float     ** wavelength_clean,
00211             int       ** row_clean,
00212             int        * n_found_lines,
00213             int          n_columns,
00214             float        pixel_tolerance ) ;
00215 
00216 
00235 cpl_image * 
00236 sinfo_new_create_shifted_slit_wavemap (cpl_image * lineIm,
00237                                       float    ** coeffs,
00238                                       int      n_fitcoeffs,
00239                                       float  * wavelength,
00240                                       float  * intensity,
00241                                       int      n_lines,
00242                                       int      magFactor ) ;
00266 cpl_image * 
00267 sinfo_new_create_shifted_slit_wavemap2 (cpl_image * lineIm,
00268                                       float    ** coeffs,
00269                                       int      n_fitcoeffs,
00270                                       float  * wavelength,
00271                                       float  * intensity,
00272                                       int      n_lines,
00273                                       int      magFactor,
00274                                       float    dispersion,
00275                                       float    pixel_dist ) ;
00276 
00277 
00299 cpl_image * 
00300 sinfo_new_create_shifted_slit_wavemap3 (cpl_image * lineIm,
00301                                       float    ** coeffs,
00302                                       int      n_fitcoeffs,
00303                                       float  * wavelength,
00304                                       float  * intensity,
00305                                       int      n_lines,
00306                                       int      magFactor ) ;
00307 
00308 
00329 float sinfo_new_check_line_positions ( cpl_image     * lineIm,
00330                        float       ** coeffs,
00331                        int            n_fitcoeffs,
00332                        float           guess_disp1,
00333                        FitParams   ** par );
00334 
00360 float 
00361 sinfo_new_check_correlated_line_positions (cpl_image     * lineIm,
00362                                      float       ** coeffs,
00363                                      int            n_fitcoeffs,
00364                                      float        * wavelength,
00365                                      float        * intensity,
00366                                      int            n_lines,
00367                                      float          fwhm,
00368                                      float          width,
00369                                      float          min_amplitude,
00370                                      float          dispersion,
00371                                      FitParams   ** par ) ;
00372 
00373 
00374 
00375 #endif 

Generated on 8 Mar 2011 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1