GIRAFFE Pipeline Reference Manual

giwlsolution.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 GIWLSOLUTION_H
29 #define GIWLSOLUTION_H
30 
31 #include <cxtypes.h>
32 
33 #include <cpl_macros.h>
34 #include <cpl_table.h>
35 
36 #include <gimodel.h>
37 #include <gigrating.h>
38 #include <giwlresiduals.h>
39 
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 
46 typedef struct GiWlSolution GiWlSolution;
47 
48 
49 GiWlSolution *giraffe_wlsolution_new(const cxchar *name, cxint orientation,
50  cxint npixels, cxdouble pixelsize,
51  GiGrating *grating);
52 GiWlSolution *giraffe_wlsolution_clone(const GiWlSolution *other);
53 GiWlSolution *giraffe_wlsolution_create(GiTable *solution, GiImage *spectra,
54  GiGrating *grating);
55 void giraffe_wlsolution_delete(GiWlSolution *self);
56 
57 const cxchar *giraffe_wlsolution_name(const GiWlSolution *self);
58 GiModel *giraffe_wlsolution_model(const GiWlSolution *self);
59 
60 void giraffe_wlsolution_reset_residuals(GiWlSolution *self);
61 
62 cxint giraffe_wlsolution_set_subslits(GiWlSolution *self, cxbool flag);
63 cxbool giraffe_wlsolution_get_subslits(const GiWlSolution *self);
64 
65 cxint giraffe_wlsolution_set_residuals(GiWlSolution *self,
66  const GiWlResiduals *residuals);
67 GiWlResiduals *giraffe_wlsolution_get_residuals(const GiWlSolution *self);
68 
69 cxdouble giraffe_wlsolution_compute_pixel(const GiWlSolution *self,
70  cxdouble lambda, cxdouble x,
71  cxdouble y, cxint *status);
72 
73 cxdouble giraffe_wlsolution_compute_residual(const GiWlSolution *self,
74  cxdouble x, cxdouble y);
75 
76 GiTable *giraffe_wlsolution_create_table(const GiWlSolution *solution);
77 
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* GIWLSOLUTION_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.12.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Mon Mar 24 2014 11:43:53 by doxygen 1.8.2 written by Dimitri van Heesch, © 1997-2004