UVES Pipeline Reference Manual  5.4.6
uves_merge.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: 2011-12-08 14:00:44 $
23  * $Revision: 1.16 $
24  * $Name: not supported by cvs2svn $
25  * $Log: not supported by cvs2svn $
26  * Revision 1.15 2010/12/08 11:06:20 amodigli
27  * added chip parameter to uves_merge_orders() to have proper filenames
28  *
29  * Revision 1.14 2010/09/24 09:32:04 amodigli
30  * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data
31  *
32  * Revision 1.12 2008/05/13 09:59:58 amodigli
33  * added delt1,delt2
34  *
35  * Revision 1.11 2008/02/21 07:50:07 amodigli
36  * added method noappend
37  *
38  * Revision 1.10 2007/09/19 11:38:44 amodigli
39  * added MERGE_FLAMES
40  *
41  * Revision 1.9 2007/06/06 08:17:33 amodigli
42  * replace tab with 4 spaces
43  *
44  * Revision 1.8 2007/04/24 12:50:29 jmlarsen
45  * Replaced cpl_propertylist -> uves_propertylist which is much faster
46  *
47  * Revision 1.7 2006/08/17 13:56:53 jmlarsen
48  * Reduced max line length
49  *
50  * Revision 1.6 2005/12/16 14:22:23 jmlarsen
51  * Removed midas test data; Added sof files
52  *
53  * Revision 1.5 2005/11/24 15:09:06 jmlarsen
54  * Implemented 2d extraction/rebinning/merging
55  *
56  * Revision 1.4 2005/11/18 10:52:06 jmlarsen
57  * Split into optimal/sum merge methods
58  *
59  * Revision 1.3 2005/11/11 13:18:54 jmlarsen
60  * Reorganized code, renamed source files
61  *
62  */
63 #ifndef UVES_MERGE_H
64 #define UVES_MERGE_H
65 #include <uves_cpl_size.h>
66 #include <uves_propertylist.h>
67 #include <cpl.h>
68 #include <uves_chip.h>
69 
70 typedef enum {MERGE_OPTIMAL, MERGE_SUM, MERGE_NOAPPEND, MERGE_FLAMES} merge_method;
71 
72 cpl_image *
73 uves_merge_orders(const cpl_image *spectrum,
74  const cpl_image *spectrum_noise,
75  const uves_propertylist *spectrum_header,
76  merge_method m_method,
77  int n_traces,
78  uves_propertylist **merged_header,
79  const double delt1,
80  const double delt2,
81  enum uves_chip chip,
82  cpl_image **merged_noise);
83 
84 merge_method
85 uves_get_merge_method(const cpl_parameterlist *parameters,
86  const char *context, const char *subcontext);
87 
88 #endif
merge_method uves_get_merge_method(const cpl_parameterlist *parameters, const char *context, const char *subcontext)
Read merging method from parameter list.
Definition: uves_merge.c:777
cpl_image * uves_merge_orders(const cpl_image *spectrum, const cpl_image *spectrum_noise, const uves_propertylist *spectrum_header, merge_method m_method, int n_traces, uves_propertylist **merged_header, const double delt1, const double delt2, enum uves_chip chip, cpl_image **merged_noise)
Merge orders.
Definition: uves_merge.c:239