UVES Pipeline Reference Manual  5.4.0
uves_reduce.h
1 /*
2  * This file is part of the ESO UVES 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 /*
21  * $Author: amodigli $
22  * $Date: 2013-08-08 13:36:46 $
23  * $Revision: 1.28 $
24  * $Name: not supported by cvs2svn $
25  *
26  */
27 #ifndef UVES_REDUCE_H
28 #define UVES_REDUCE_H
29 #include <uves_cpl_size.h>
30 #include <uves_utils_polynomial.h>
31 #include <uves_chip.h>
32 
33 #include <cpl.h>
34 
35 #include <stdbool.h>
36 
37 cpl_parameterlist *uves_reduce_define_parameters(void);
38 
39 cpl_error_code uves_reduce(const cpl_image *raw_image,
40  const uves_propertylist *raw_header,
41  const uves_propertylist *rotated_header,
42  const cpl_image *master_bias,
43  const uves_propertylist *mbias_header,
44  const cpl_image *master_dark,
45  const uves_propertylist *mdark_header,
46  const cpl_image *master_flat,
47  const uves_propertylist *mflat_header,
48  const cpl_table *ordertable,
49  const polynomial *order_locations,
50  const cpl_table *linetable[3],
51  const uves_propertylist *linetable_header[3],
52  const polynomial *dispersion_relation[3],
53  enum uves_chip chip,
54  /* General */
55  bool debug_mode,
56  /* Backsub */
57  /* Flat fielding */
58  /* Extraction */
59  /* Rebinning */
60  const cpl_parameterlist *parameters,
61  const char *rec_id,
62  const char *mode,
63  /* Output */
64  cpl_image **x, uves_propertylist **x_header,
65  cpl_image **fx,
66  cpl_table **cosmic_mask,
67  cpl_image **wave_map,
68  cpl_image **background,
69  cpl_image **flatfielded_variance,
70  uves_propertylist **flatfielded_variance_header,
71  cpl_image **resampled_spectrum,
72  cpl_image **resampled_mf,
73  cpl_image **merged_sky,
74  cpl_image **rebinned_spectrum,
75  cpl_image **rebinned_noise,
76  uves_propertylist **rebinned_header,
77  cpl_image **merged_spectrum,
78  cpl_image **merged_noise,
79  uves_propertylist **merged_header,
80  cpl_image **reduced_rebinned_spectrum,
81  cpl_image **reduced_rebinned_noise,
82  cpl_image **reduced_spectrum ,
83  cpl_image **reduced_noise,
84  cpl_table **info_tbl,
85  double *extraction_slit,
86  cpl_table **order_trace);
87 
88 #endif /* UVES_REDUCE_H */