uves_rebin.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: 2010/11/09 17:21:57 $
00023  * $Revision: 1.11 $
00024  * $Name: uves-5_0_0 $
00025  * $Log: uves_rebin.h,v $
00026  * Revision 1.11  2010/11/09 17:21:57  amodigli
00027  * changed interface uves_rebin to allow different formula in case the spectrum is the one of noise
00028  *
00029  * Revision 1.10  2010/09/24 09:32:07  amodigli
00030  * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data
00031  *
00032  * Revision 1.8  2007/06/06 08:17:33  amodigli
00033  * replace tab with 4 spaces
00034  *
00035  * Revision 1.7  2007/05/22 11:38:18  jmlarsen
00036  * Removed MIDAS flag for good
00037  *
00038  * Revision 1.6  2007/05/07 10:18:25  jmlarsen
00039  * Added option to enforce positive resulting values (useful for error bars)
00040  *
00041  * Revision 1.5  2007/04/24 12:50:29  jmlarsen
00042  * Replaced cpl_propertylist -> uves_propertylist which is much faster
00043  *
00044  * Revision 1.4  2006/04/06 08:39:36  jmlarsen
00045  * Added void to function prototype
00046  *
00047  * Revision 1.3  2005/12/19 16:17:56  jmlarsen
00048  * Replaced bool -> int
00049  *
00050  * Revision 1.2  2005/11/24 11:54:46  jmlarsen
00051  * Added support for CPL 3 interface
00052  *
00053  * Revision 1.1  2005/11/11 13:18:54  jmlarsen
00054  * Reorganized code, renamed source files
00055  *
00056  */
00057 #ifndef UVES_REBIN_H
00058 #define UVES_REBIN_H
00059 
00060 #include <uves_utils_polynomial.h>
00061 #include <cpl.h>
00062 #include <stdbool.h>
00063 
00064 cpl_parameterlist *uves_rebin_define_parameters(void);
00065 
00066 cpl_image *
00067 uves_rebin(const cpl_image *spectrum,
00068        const cpl_parameterlist *parameters, const char *context,
00069        const cpl_table *linetable, const polynomial *dispersion_relation, 
00070        int first_abs_order, int last_abs_order,
00071        int n_traces,
00072            bool threshold_to_positive,
00073            bool is_noise,
00074        uves_propertylist **rebinned_header);
00075 
00076 #endif
00077 
00078 

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