fors_response.h

00001 /*
00002  * This file is part of the FORS Data Reduction Pipeline
00003  * Copyright (C) 2002-2010 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, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018  */
00019 
00020 /*
00021  * fors_response.h
00022  *
00023  *  Created on: 2014 4 2
00024  *      Author: cgarcia
00025  */
00026 
00027 #ifndef FORS_RESPONSE_H_
00028 #define FORS_RESPONSE_H_
00029 
00030 #include "cpl.h"
00031 #include "fors_detected_slits.h"
00032 
00033 CPL_BEGIN_DECLS
00034 
00035 cpl_table *fors_compute_response
00036 (cpl_image *spectra, cpl_image * mapped_flat_sed,
00037  cpl_propertylist * flat_sed_header, cpl_table *objects,
00038  double startwave, double dispersion, double gain,
00039  double exptime, cpl_table *ext_table, double airmass, cpl_table *flux_table,
00040  const std::vector<double>& ignored_waves,
00041  const std::vector<std::pair<double, double> >& ignored_wave_ranges,
00042  int nknots, int degree, cpl_table *& response_interp,
00043  double& flat_sed_norm_factor,
00044  const fors::detected_slits& det_slits);
00045 
00046 void fors_science_correct_flat_sed
00047 (cpl_image *spectra,  cpl_table *objects,
00048  cpl_image * mapped_flat_sed,
00049  cpl_propertylist * flat_sed_header,
00050  cpl_propertylist * specphot_header,
00051  const fors::detected_slits& det_slits);
00052 
00053 void fors_science_correct_flat_sed_mapped
00054 (cpl_image *mapped_image,  cpl_table *objects,
00055  cpl_image * mapped_flat_sed,
00056  cpl_propertylist * flat_sed_header,
00057  cpl_propertylist * specphot_header,
00058  const fors::detected_slits& det_slits);
00059 
00060 CPL_END_DECLS
00061 
00062 #endif /* FORS_RESPONSE_H_ */

Generated on 12 Feb 2016 for FORS Pipeline Reference Manual by  doxygen 1.6.1