sinfo_utl_efficiency.h

00001 /*
00002  * This file is part of the ESO SINFONI Pipeline
00003  * Copyright (C) 2004-2009 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  * $Author: amodigli $
00021  * $Date: 2010/02/08 07:18:21 $
00022  * $Revision: 1.9 $
00023  *
00024  */
00025 
00026 #ifndef SINFO_UTL_EFFICIENCY_H_
00027 #define SINFO_UTL_EFFICIENCY_H_
00028 #include <cpl.h>
00029 
00030 
00031 void 
00032 sinfo_load_ref_table(cpl_frameset* frames, 
00033                    double dRA, 
00034                    double dDEC, 
00035                    double EPSILON, 
00036                    cpl_table** pptable);
00037 
00038 
00039 
00040 cpl_table*
00041 sinfo_utl_efficiency(
00042              cpl_frameset * frames,
00043              double dGain,
00044              double dEpsilon,
00045              double aimprim,
00046                      const char* col_name_atm_wave,
00047                      const char* col_name_atm_abs,
00048                      const char* col_name_ref_wave,
00049                      const char* col_name_ref_flux,
00050                      const char* col_name_ref_bin,
00051                      const char* col_name_obj_wave,
00052                      const char* col_name_obj_flux
00053    );
00054 
00055 cpl_table* 
00056 sinfo_utl_efficiency_internal(
00057                   cpl_table* tbl_obj_spectrum,
00058                   cpl_table* tbl_atmext,
00059                   cpl_table* tbl_ref,
00060                   double exptime,
00061                   double airmass,
00062                   double aimprim,
00063                   double gain,
00064                   int    biny,
00065                               double src2ref_wave_sampling,
00066                               const char* col_name_atm_wave,
00067                               const char* col_name_atm_abs,
00068                               const char* col_name_ref_wave,
00069                               const char* col_name_ref_flux,
00070                               const char* col_name_ref_bin,
00071                               const char* col_name_obj_wave,
00072                               const char* col_name_obj_flux
00073    );
00074 
00075 double
00076 sinfo_data_interpolate(
00077              double wav,
00078              int nrow,
00079              double* pw,
00080              double* pe
00081              );
00082 
00083 
00084 
00085 cpl_table*
00086 sinfo_efficiency_compute(cpl_frame* frm_sci, 
00087                        cpl_frame* frm_cat,
00088                        cpl_frame* frm_atmext);
00089 
00090 
00091 #endif

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