FORS Pipeline Reference Manual  5.0.9
fors_tools.h
1 /* $Id: fors_tools.h,v 1.7 2010-09-14 07:49:30 cizzo Exp $
2  *
3  * This file is part of the FORS Library
4  * Copyright (C) 2002-2010 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /*
22  * $Author: cizzo $
23  * $Date: 2010-09-14 07:49:30 $
24  * $Revision: 1.7 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef FORS_TOOLS_H
29 #define FORS_TOOLS_H
30 
31 #include <fors_star.h>
32 #include <fors_setting.h>
33 #include <fors_image.h>
34 #include <cpl.h>
35 
36 CPL_BEGIN_DECLS
37 
38 double
39 fors_star_ext_corr(fors_star_list *stars,
40  const fors_setting *setting,
41  double ext_coeff,
42  double dext_coeff,
43  const cpl_frame *raw_frame);
44 
45 cpl_table *
46 fors_create_sources_table(fors_star_list *sources);
47 
48 double
50  double convert_ADU,
51  double master_noise);
52 double
54  const fors_image *second_raw,
55  double ron);
56 double
57 fors_get_airmass(const cpl_propertylist *header);
58 
59 int fors_isnan(double x);
60 
61 CPL_END_DECLS
62 
63 #endif
double fors_fixed_pattern_noise_bias(const fors_image *first_raw, const fors_image *second_raw, double ron)
Compute fixed pattern noise in bias.
Definition: fors_tools.c:329
double fors_fixed_pattern_noise(const fors_image *master, double convert_ADU, double master_noise)
Compute fixed pattern noise in flat field.
Definition: fors_tools.c:244
CPL_BEGIN_DECLS double fors_star_ext_corr(fors_star_list *stars, const fors_setting *setting, double ext_coeff, double dext_coeff, const cpl_frame *raw_frame)
Correct for extinction, gain, exposure time.
Definition: fors_tools.c:65
double fors_get_airmass(const cpl_propertylist *header)
Compute average airmass.
Definition: fors_tools.c:398
cpl_table * fors_create_sources_table(fors_star_list *sources)
Create product.
Definition: fors_tools.c:130