SINFONI Pipeline Reference Manual  2.6.0
sinfo_absolute.h
1 /*
2  * This file is part of the ESO SINFONI Pipeline
3  * Copyright (C) 2004,2005 European Southern Observatory
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18  */
19 /*****************************************************************************
20 * E.S.O. - VLT project
21 *
22 * "@(#) $Id: sinfo_absolute.h,v 1.3 2007-08-20 10:01:05 amodigli Exp $"
23 *
24 * who when what
25 * -------- -------- ----------------------------------------------
26 * schreib 14/11/00 created
27 */
28 #ifndef SINFO_ABSOLUTE_H
29 #define SINFO_ABSOLUTE_H
30 
34 /*----------------------------------------------------------------------------*/
35 
36 
37 /************************************************************************
38  * absolute.h
39  * routines to determine the absolute positions of the slitlets out of
40  * an emission line frame
41  *----------------------------------------------------------------------
42  */
43 
44 /*
45  * header files
46  */
47 
48 #include <cpl.h>
49 #include "sinfo_spectrum_ops.h"
50 #include "sinfo_msg.h"
51 #include "sinfo_recipes.h"
52 /*----------------------------------------------------------------------------
53  * Function ANSI C prototypes
54  *--------------------------------------------------------------------------*/
55 
56 float
57 sinfo_new_edge(float * xdat, float * parlist/*, int * npar, int * ndat */) ;
58 
59 float
60 sinfo_new_boltz ( float * xdat, float * parlist ) ;
61 
62 void
63 sinfo_new_edge_deriv(float * xdat,
64  float * parlist, float * dervs/*, int * npar */) ;
65 
66 void
67 sinfo_new_boltz_deriv( float * xdat, float * parlist, float * dervs ) ;
68 
69 int sinfo_new_lsqfit ( float * xdat,
70  int * xdim,
71  float * ydat,
72  float * wdat,
73  int * ndat,
74  float * fpar,
75  float * epar,
76  int * mpar,
77  int * npar,
78  float * tol ,
79  int * its ,
80  float * lab ) ;
81 
82 int
83 sinfo_new_lsqfit_edge ( float * xdat,
84  int * xdim,
85  float * ydat,
86  float * wdat,
87  int * ndat,
88  float * fpar,
89  float * epar,
90  int * mpar,
91  int * npar,
92  float * tol ,
93  int * its ,
94  float * lab ) ;
95 
96 int
97 sinfo_new_fit_slits_edge( cpl_image * lineImage,
98  FitParams ** par,
99  float ** sinfo_slit_pos,
100  int box_length,
101  float y_box,
102  float diff_tol ) ;
103 
104 int
105 sinfo_new_fit_slits_boltz( cpl_image * lineImage,
106  FitParams ** par,
107  float ** sinfo_slit_pos,
108  int box_length,
109  float y_box,
110  float diff_tol ) ;
111 
112 int
113 sinfo_new_fit_slits_boltz_single_line ( cpl_image * lineImage,
114  float ** sinfo_slit_pos,
115  int box_length,
116  float y_box,
117  int low_pos,
118  int high_pos ) ;
119 
120 int
121 sinfo_new_fit_slits_boltz_with_estimate ( cpl_image * lineImage,
122  float ** sinfo_slit_pos,
123  int box_length,
124  float y_box,
125  float diff_tol,
126  int low_pos,
127  int high_pos ) ;
128 
129 int
130 sinfo_new_fit_slits_edge_with_estimate ( cpl_image * lineImage,
131  float ** sinfo_slit_pos,
132  int box_length,
133  float y_box,
134  float diff_tol,
135  int low_pos,
136  int high_pos ) ;
137 
138 #endif