FORS Pipeline Reference Manual  5.0.9
fors_saturation_mos.h
1 /*
2  * This file is part of the FORS Library
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 #ifndef FORS_SATURATION_MOS_H
22 #define FORS_SATURATION_MOS_H
23 
24 #include <cpl.h>
25 #include <vector>
26 #include "mosca_image.h"
27 #include "fors_calibrated_slits.h"
28 
29 /* Saturation computation */
30 void fors_saturation_reject_sat_slits(std::vector<mosca::image>& raw_flats,
31  const fors::calibrated_slits& slits,
32  cpl_mask ** non_linear_flat_masks,
33  cpl_mask ** saturated_flat_masks,
34  double max_nonlinear_ratio,
35  std::vector<std::vector<double> >& slit_nonlinear_ratio,
36  std::vector<std::vector<int> >& slit_nonlinear_count);
37 
38 #endif