uves_reduce.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/26 11:05:31 $
00023  * $Revision: 1.25 $
00024  * $Name: uves-4_9_1 $
00025  *
00026  */
00027 #ifndef UVES_REDUCE_H
00028 #define UVES_REDUCE_H
00029 
00030 #include <uves_utils_polynomial.h>
00031 #include <uves_chip.h>
00032 
00033 #include <cpl.h>
00034 
00035 #include <stdbool.h>
00036 
00037 cpl_parameterlist *uves_reduce_define_parameters(void);
00038 
00039 cpl_error_code uves_reduce(const cpl_image *raw_image, 
00040                            const uves_propertylist *raw_header, 
00041                            const uves_propertylist *rotated_header,
00042                const cpl_image *master_bias,
00043                const cpl_image *master_dark, 
00044                            const uves_propertylist *mdark_header, 
00045                const cpl_image *master_flat, 
00046                            const uves_propertylist *mflat_header,
00047                const cpl_table *ordertable, 
00048                            const polynomial *order_locations,
00049                const cpl_table *linetable[3], 
00050                            const uves_propertylist *linetable_header[3], 
00051                            const polynomial *dispersion_relation[3],
00052                enum uves_chip chip,
00053                /* General */
00054                bool   DEBUG,
00055                /* Backsub */
00056                /* Flat fielding */
00057                /* Extraction */
00058                /* Rebinning  */
00059                const cpl_parameterlist *parameters, 
00060                            const char *rec_id,
00061                            const char *mode,
00062                /* Output */
00063                cpl_image **x, uves_propertylist **x_header,
00064                cpl_image **fx,
00065                cpl_table **cosmic_mask,
00066                cpl_image **wave_map,
00067                cpl_image **background,
00068                cpl_image **flatfielded_variance,
00069                uves_propertylist **flatfielded_variance_header,
00070                cpl_image **resampled_spectrum,
00071                cpl_image **resampled_mf,
00072                cpl_image **merged_sky,
00073                cpl_image **rebinned_spectrum, 
00074                            cpl_image **rebinned_noise, 
00075                            uves_propertylist **rebinned_header,
00076                cpl_image **merged_spectrum,   
00077                            cpl_image **merged_noise, 
00078                            uves_propertylist **merged_header,
00079                cpl_image **reduced_rebinned_spectrum, 
00080                            cpl_image **reduced_rebinned_noise,
00081                cpl_image **reduced_spectrum , 
00082                            cpl_image **reduced_noise,
00083                            cpl_table **info_tbl,
00084                double *extraction_slit,
00085                cpl_table **order_trace);
00086 
00087 #endif  /* UVES_REDUCE_H */

Generated on 8 Mar 2011 for UVES Pipeline Reference Manual by  doxygen 1.6.1