00001 #ifndef SINFO_WAVECAL_H
00002 #define SINFO_WAVECAL_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #include <cpl.h>
00041 #include "sinfo_spectrum_ops.h"
00042
00043
00044
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