uves_extract.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/09/24 09:32:03 $
00023  * $Revision: 1.35 $
00024  * $Name: uves-4_9_1 $
00025  *
00026  */
00027 #ifndef UVES_EXTRACT_H
00028 #define UVES_EXTRACT_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 typedef enum {EXTRACT_AVERAGE,
00038           EXTRACT_LINEAR,
00039           EXTRACT_2D,
00040           EXTRACT_ARCLAMP,
00041           EXTRACT_WEIGHTED,
00042           EXTRACT_OPTIMAL} extract_method;
00043 
00044 
00045 cpl_parameterlist *uves_extract_define_parameters(void);
00046 
00047 extract_method
00048 uves_get_extract_method(const cpl_parameterlist *parameters, 
00049             const char *context, const char *subcontext);
00050 
00051 cpl_image *
00052 uves_extract(cpl_image *image, 
00053              cpl_image *image_noise, 
00054          const uves_propertylist *image_header,
00055              const cpl_table *ordertable, 
00056              const polynomial *order_locations_raw,
00057              double slit_length, 
00058              double offset,
00059              const cpl_parameterlist *parameters, 
00060              const char *context,
00061              const char *mode,
00062              bool extract_partial,
00063          bool DEBUG,
00064          enum uves_chip chip,
00065              uves_propertylist **header, 
00066              cpl_image **spectrum_noise,
00067              cpl_image **sky_spectrum,
00068              cpl_image **sky_spectrum_noise,
00069              cpl_table **cosmic_mask,
00070              cpl_image **cosmic_image,
00071              cpl_table **profile_table,
00072              cpl_image **weights,
00073              cpl_table **info_tbl,
00074              cpl_table **order_trace);
00075 
00076 #endif

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