uves_merge.h

00001 /*
00002  * This file is part of the ESO UVES Pipeline
00003  * Copyright (C) 2004,2005 European Southern Observatory
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00018  */
00019 
00020 /*
00021  * $Author: amodigli $
00022  * $Date: 2011/12/08 14:00:44 $
00023  * $Revision: 1.16 $
00024  * $Name: uves-5_0_0 $
00025  * $Log: uves_merge.h,v $
00026  * Revision 1.16  2011/12/08 14:00:44  amodigli
00027  * include uves_cpl_size.h for CPL6
00028  *
00029  * Revision 1.15  2010/12/08 11:06:20  amodigli
00030  * added chip parameter to uves_merge_orders() to have proper filenames
00031  *
00032  * Revision 1.14  2010/09/24 09:32:04  amodigli
00033  * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data
00034  *
00035  * Revision 1.12  2008/05/13 09:59:58  amodigli
00036  * added delt1,delt2
00037  *
00038  * Revision 1.11  2008/02/21 07:50:07  amodigli
00039  * added method noappend
00040  *
00041  * Revision 1.10  2007/09/19 11:38:44  amodigli
00042  * added MERGE_FLAMES
00043  *
00044  * Revision 1.9  2007/06/06 08:17:33  amodigli
00045  * replace tab with 4 spaces
00046  *
00047  * Revision 1.8  2007/04/24 12:50:29  jmlarsen
00048  * Replaced cpl_propertylist -> uves_propertylist which is much faster
00049  *
00050  * Revision 1.7  2006/08/17 13:56:53  jmlarsen
00051  * Reduced max line length
00052  *
00053  * Revision 1.6  2005/12/16 14:22:23  jmlarsen
00054  * Removed midas test data; Added sof files
00055  *
00056  * Revision 1.5  2005/11/24 15:09:06  jmlarsen
00057  * Implemented 2d extraction/rebinning/merging
00058  *
00059  * Revision 1.4  2005/11/18 10:52:06  jmlarsen
00060  * Split into optimal/sum merge methods
00061  *
00062  * Revision 1.3  2005/11/11 13:18:54  jmlarsen
00063  * Reorganized code, renamed source files
00064  *
00065  */
00066 #ifndef UVES_MERGE_H
00067 #define UVES_MERGE_H
00068 #include <uves_cpl_size.h>
00069 #include <uves_propertylist.h>
00070 #include <cpl.h>
00071 #include <uves_chip.h>
00072 
00073 typedef enum {MERGE_OPTIMAL, MERGE_SUM, MERGE_NOAPPEND, MERGE_FLAMES} merge_method;
00074 
00075 cpl_image *
00076 uves_merge_orders(const cpl_image *spectrum, 
00077                   const cpl_image *spectrum_noise,
00078                   const uves_propertylist *spectrum_header,
00079                   merge_method m_method,
00080                   int n_traces,
00081           uves_propertylist **merged_header,
00082           const double delt1, 
00083                   const double delt2,
00084                   enum uves_chip chip,
00085                   cpl_image **merged_noise);
00086 
00087 merge_method
00088 uves_get_merge_method(const cpl_parameterlist *parameters, 
00089               const char *context, const char *subcontext);
00090 
00091 #endif

Generated on 9 Mar 2012 for UVES Pipeline Reference Manual by  doxygen 1.6.1