sinfo_skycor.h

00001 /* $Id: sinfo_skycor.h,v 1.13 2007/03/05 07:21:54 amodigli Exp $
00002  *
00003  * This file is part of the SINFONI Pipeline
00004  * Copyright (C) 2002,2003 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 /*
00022  * $Author: amodigli $
00023  * $Date: 2007/03/05 07:21:54 $
00024  * $Revision: 1.13 $
00025  * $Name: sinfo-2_2_5 $
00026  */
00027 
00028 #ifdef HAVE_CONFIG_H
00029 #include <config.h>
00030 #endif
00031 
00032 #ifndef SINFO_SKYCOR_H
00033 #define SINFO_SKYCOR_H
00034 #include <cpl.h>
00035 
00036 #define SINFO_MASK_WAVE_MIN 1.4
00037 #define SINFO_MASK_WAVE_MAX 2.5
00038 #define SINFO_MIN_FRAC 0.8
00039 #define SINFO_LINE_HALF_WIDTH 4.0
00040 #define SINFO_SKY_BKG_FILTER_WIDTH 12
00041 
00042 
00043 
00044 #define HISTO_NBINS 100
00045 #define HISTO_MIN_SIZE 10
00046 #define HISTO_Y_CUT 10          /* 50 is a better value this 
00047                                    affects histo right marging*/
00048 #define HISTO_X_LEFT_CUT  1.0   /* 0.2 is better */
00049 #define HISTO_X_RIGHT_CUT  0.5  /* 1.0 is better */
00050 #define HISTO_DIST_TEMPC_MIN_FCT 5.   /* 5.0 */
00051 #define HISTO_DIST_TEMPC_MAX_FCT 0.25 /* 0.25 */
00052 
00053 struct sinfo_skycor_qc_ {
00054   int   th_fit;
00055 };
00056 typedef struct sinfo_skycor_qc_ sinfo_skycor_qc; 
00057 
00058 sinfo_skycor_qc* sinfo_skycor_qc_new(void);
00059 void sinfo_skycor_qc_delete(sinfo_skycor_qc** s);
00060 
00061 
00062 int 
00063 sinfo_skycor(cpl_parameterlist * config, 
00064              cpl_frame* obj_frm, 
00065              cpl_frame* sky_frm,
00066              sinfo_skycor_qc* sqc,
00067              cpl_imagelist** obj_cor,
00068              cpl_table** int_obj);
00069 
00070 
00071 
00072 int
00073 sinfo_histogram(const cpl_table* data,
00074                 const int nbins, 
00075                 const double min, 
00076                 const double max,
00077                 cpl_table** histo);
00078 int
00079 sinfo_table_get_index_of_val(cpl_table* t,
00080                              const char* name,
00081                              double val,
00082                              cpl_type type);
00083 
00084 int
00085 sinfo_table_get_index_of_max(cpl_table* t,
00086                              const char* name,
00087                              cpl_type type);
00088 
00089 
00090 double
00091 sinfo_table_column_interpolate(const cpl_table* t,
00092                                const char* name,
00093                                const double x);
00094 
00095 
00096 
00097 
00098 
00099 cpl_table* 
00100 sinfo_where_tab_min_max(cpl_table* t, 
00101                         const char* col, 
00102                         cpl_table_select_operator op1,  
00103                         const double v1, 
00104                         cpl_table_select_operator op2, 
00105                         const double v2);
00106 
00107 #endif

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