FORS Pipeline Reference Manual  5.2.4
fors_response.h
1 /*
2  * This file is part of the FORS Data Reduction Pipeline
3  * Copyright (C) 2002-2010 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, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 /*
21  * fors_response.h
22  *
23  * Created on: 2014 4 2
24  * Author: cgarcia
25  */
26 
27 #ifndef FORS_RESPONSE_H_
28 #define FORS_RESPONSE_H_
29 
30 #include "cpl.h"
31 #include "fors_detected_slits.h"
32 
33 CPL_BEGIN_DECLS
34 
35 cpl_table *fors_compute_response
36 (cpl_image *spectra, cpl_image * mapped_flat_sed,
37  cpl_propertylist * flat_sed_header, cpl_table *objects,
38  double startwave, double dispersion, double gain,
39  double exptime, cpl_table *ext_table, double airmass, cpl_table *flux_table,
40  const std::vector<double>& ignored_waves,
41  const std::vector<std::pair<double, double> >& ignored_wave_ranges,
42  int nknots, int degree, cpl_table *& response_interp,
43  double& flat_sed_norm_factor,
44  const fors::detected_slits& det_slits);
45 
46 void fors_science_correct_flat_sed
47 (cpl_image *spectra, cpl_table *objects,
48  cpl_image * mapped_flat_sed,
49  cpl_propertylist * flat_sed_header,
50  cpl_propertylist * specphot_header,
51  const fors::detected_slits& det_slits);
52 
53 void fors_science_correct_flat_sed_mapped
54 (cpl_image *mapped_image, cpl_table *objects,
55  cpl_image * mapped_flat_sed,
56  cpl_propertylist * flat_sed_header,
57  cpl_propertylist * specphot_header,
58  const fors::detected_slits& det_slits);
59 
60 CPL_END_DECLS
61 
62 #endif /* FORS_RESPONSE_H_ */