GIRAFFE Pipeline Reference Manual

gisgcalibration.h
1 /* $Id$
2  *
3  * This file is part of the GIRAFFE Pipeline
4  * Copyright (C) 2002-2006 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /*
22  * $Author$
23  * $Date$
24  * $Revision$
25  * $Name$
26  */
27 
28 #ifndef GISGCALIBRATION_H
29 #define GISGCALIBRATION_H
30 
31 #include <cxtypes.h>
32 
33 #include <cpl_macros.h>
34 #include <cpl_parameterlist.h>
35 
36 #include <girange.h>
37 #include <giimage.h>
38 #include <gitable.h>
39 #include <gilocalization.h>
40 #include <giextraction.h>
41 #include <girebinning.h>
42 
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 
57 struct GiSGCalConfig {
58 
63  cxint repeat;
64 
70  cxdouble zmax;
71 
76  cxdouble cc_step;
77 
83  cxbool cc_wdomain;
84 
90  GiRange* cc_domain;
91 
96  GiRange* rv_limits;
97 
102  cxint rv_niter;
103 
108  cxdouble rv_wfactor;
109 
114  cxint pf_niter;
115 
120  cxint pf_ntest;
121 
126  cxdouble pf_dchisq;
127 
128 };
129 
130 typedef struct GiSGCalConfig GiSGCalConfig;
131 
132 
133 cxint giraffe_calibrate_slit(GiTable* result, const GiExtraction* extraction,
134  const GiLocalization* localization,
135  const GiTable* fibers, const GiTable* wlsolution,
136  const GiTable* slitgeometry,
137  const GiTable* grating, const GiTable* mask,
138  const GiSGCalConfig* config);
139 
140 cxint giraffe_compute_offsets(GiTable* fibers,
141  const GiRebinning* rebinning,
142  const GiTable* grating,
143  const GiTable* mask,
144  const GiSGCalConfig* config);
145 
146 GiSGCalConfig* giraffe_sgcalibration_config_create(cpl_parameterlist* list);
148 void giraffe_sgcalibration_config_add(cpl_parameterlist* list);
149 
150 
151 #ifdef __cplusplus
152 }
153 #endif
154 
155 #endif /* GISGCALIBRATION_H */
cxdouble pf_dchisq
GiRange * cc_domain
cxint giraffe_calibrate_slit(GiTable *result, const GiExtraction *extraction, const GiLocalization *localization, const GiTable *fibers, const GiTable *wlsolution, const GiTable *slitgeometry, const GiTable *grating, const GiTable *mask, const GiSGCalConfig *config)
Compute a slit geometry corresponding to the given rebinned spectrum.
cxdouble rv_wfactor
void giraffe_sgcalibration_config_destroy(GiSGCalConfig *config)
Destroys a sgcalibration field setup structure.
GiSGCalConfig * giraffe_sgcalibration_config_create(cpl_parameterlist *list)
Creates a setup structure for the slit geometry calibration.
cxdouble cc_step
GiRange * rv_limits
void giraffe_sgcalibration_config_add(cpl_parameterlist *list)
Adds parameters for the sgcalibration correction computation.
Slit geometry calibration configuration data structure.
cxint giraffe_compute_offsets(GiTable *fibers, const GiRebinning *rebinning, const GiTable *grating, const GiTable *mask, const GiSGCalConfig *config)
Compute wavelength offsets for a set of rebinned input spectrum.

This file is part of the GIRAFFE Pipeline Reference Manual 2.14.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Wed Mar 11 2015 13:19:42 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2004