SINFONI Pipeline Reference Manual  2.6.0
sinfo_utl_efficiency.h
1 /*
2  * This file is part of the ESO SINFONI Pipeline
3  * Copyright (C) 2004-2009 European Southern Observatory
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18  */
19 /*
20  * $Author: amodigli $
21  * $Date: 2010-02-08 07:18:21 $
22  * $Revision: 1.9 $
23  *
24  */
25 
26 #ifndef SINFO_UTL_EFFICIENCY_H_
27 #define SINFO_UTL_EFFICIENCY_H_
28 #include <cpl.h>
29 
30 
31 void
32 sinfo_load_ref_table(cpl_frameset* frames,
33  double dRA,
34  double dDEC,
35  double EPSILON,
36  cpl_table** pptable);
37 
38 
39 
40 cpl_table*
41 sinfo_utl_efficiency(
42  cpl_frameset * frames,
43  double dGain,
44  double dEpsilon,
45  double aimprim,
46  const char* col_name_atm_wave,
47  const char* col_name_atm_abs,
48  const char* col_name_ref_wave,
49  const char* col_name_ref_flux,
50  const char* col_name_ref_bin,
51  const char* col_name_obj_wave,
52  const char* col_name_obj_flux
53  );
54 
55 cpl_table*
56 sinfo_utl_efficiency_internal(
57  cpl_table* tbl_obj_spectrum,
58  cpl_table* tbl_atmext,
59  cpl_table* tbl_ref,
60  double exptime,
61  double airmass,
62  double aimprim,
63  double gain,
64  int biny,
65  double src2ref_wave_sampling,
66  const char* col_name_atm_wave,
67  const char* col_name_atm_abs,
68  const char* col_name_ref_wave,
69  const char* col_name_ref_flux,
70  const char* col_name_ref_bin,
71  const char* col_name_obj_wave,
72  const char* col_name_obj_flux
73  );
74 
75 double
76 sinfo_data_interpolate(
77  double wav,
78  int nrow,
79  double* pw,
80  double* pe
81  );
82 
83 
84 
85 cpl_table*
86 sinfo_efficiency_compute(cpl_frame* frm_sci,
87  cpl_frame* frm_cat,
88  cpl_frame* frm_atmext);
89 
90 
91 #endif