00001 #ifndef WAVE_CAL_SLIT_H 00002 #define WAVE_CAL_SLIT_H 00003 /***************************************************************************** 00004 * E.S.O. - VLT project 00005 * 00006 * "@(#) $Id: wave_cal_slit.h,v 1.7 2005/09/06 16:47:46 amodigli Exp $" 00007 * 00008 * who when what 00009 * -------- -------- ---------------------------------------------- 00010 * amodigli 17/09/03 created 00011 */ 00012 00013 /************************************************************************ 00014 * wave_cal_slit.h 00015 00016 Normal method: 00017 00018 does the wavelength calibration and the fitting of the slitlet edge 00019 positions (ASCII file 32 x 2 values) if wished 00020 produces an array of the bcoefs and of the fit parameters if wished and a 00021 wavelength calibration map input is an emission line frame and a line list 00022 00023 o searching for lines by cross correlation with a line list 00024 o Gaussian fitting of emission lines in each column->positions of the lines-> 00025 resulting fit parameters can be stored in an ASCII file 00026 o Fitting of a polynomial to the line positions for each column 00027 o Smoothing: fitting of each polynomial coefficient by another polynomial 00028 across the whole frame -> resulting polynomial coefficients can be stored 00029 in an ASCII file. 00030 o Wavelength calibration map (micron value for each frame pixel) can be 00031 produced by using these coefficients and a cross correlation to the 00032 original frame 00033 00034 o The slitlet edge positions can be fitted: 00035 1) Automatically (not really stable) or by using guess edge positions 00036 2) By using a Boltzmann or a linear slope function 00037 00038 00039 Slit method: 00040 00041 does the wavelength calibration and the fitting of the slitlet edge 00042 positions (ASCII file 32 x 2 values) if wished produces a list of the fit 00043 parameters and of the smoothed coefficients if wished and a wavelength 00044 calibration map input is an emission line frame and a line list 00045 00046 o Does the same as other method but smoothes the found polynomial 00047 coefficients within each slitlet and not over the whole frame. 00048 00049 o Produces always a wavelength calibration map and does not crosscorrelate. 00050 00051 *---------------------------------------------------------------------- 00052 */ 00053 00054 /* 00055 * header files 00056 */ 00057 00058 #include <cpl.h> 00059 00060 /*---------------------------------------------------------------------------- 00061 * Function ANSI C prototypes 00062 *--------------------------------------------------------------------------*/ 00063 00064 /*---------------------------------------------------------------------------- 00065 Function : wave_cal_slit() 00066 In : ini_file: file name of according .ini file 00067 Out : integer (0 if it worked, -1 if it doesn't) 00068 Job : 00069 00070 00071 Normal method: 00072 00073 does the wavelength calibration and the fitting of the slitlet edge 00074 positions (ASCII file 32 x 2 values) if wished 00075 produces an array of the bcoefs and of the fit parameters if wished and a 00076 wavelength calibration map input is an emission line frame and a line list 00077 00078 00079 o searching for lines by cross correlation with a line list 00080 o Gaussian fitting of emission lines in each column->positions of the lines-> 00081 resulting fit parameters can be stored in an ASCII file 00082 o Fitting of a polynomial to the line positions for each column 00083 o Smoothing: fitting of each polynomial coefficient by another polynomial 00084 across the whole frame -> resulting polynomial coefficients can be stored 00085 in an ASCII file. 00086 o Wavelength calibration map (micron value for each frame pixel) can be 00087 produced by using these coefficients and a cross correlation to the 00088 original frame 00089 00090 o The slitlet edge positions can be fitted: 00091 1) Automatically (not really stable) or by using guess edge positions 00092 2) By using a Boltzmann or a linear slope function 00093 00094 Slit method: 00095 00096 does the wavelength calibration and the fitting of the slitlet edge 00097 positions (ASCII file 32 x 2 values) if wished produces a list of the fit 00098 parameters and of the smoothed coefficients if wished and a wavelength 00099 calibration map input is an emission line frame and a line list 00100 00101 o Does the same as other method but smoothes the found polynomial 00102 coefficients within each slitlet and not over the whole frame. 00103 00104 o Produces always a wavelength calibration map and does not crosscorrelate. 00105 ---------------------------------------------------------------------------*/ 00106 int wave_cal_slit (const char* plugin_id,cpl_parameterlist* config, cpl_frameset* sof) ; 00107 00108 00109 #endif 00110 00111 /*--------------------------------------------------------------------------*/
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001