OMEGA Pipeline Reference Manual  1.0.5
omega_science.h
1 /* $Id: omega_science.h,v 1.2 2011-07-22 09:57:41 agabasch Exp $
2  *
3  * This file is part of the oc Pipeline
4  * Copyright (C) 2002,2003 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: agabasch $
23  * $Date: 2011-07-22 09:57:41 $
24  * $Revision: 1.2 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef OC_SCIENCE_H
29 #define OC_SCIENCE_H
30 
31 #include <cpl.h>
32 #include "omega_fits.h"
33 
34 cpl_image *omega_reduce_science(const cpl_frame *stdframe, cpl_image *mask_img,
35  cpl_parameterlist *pars, int ext);
36 
37 omega_fits *omega_jitter_process(omega_fits *scifits, const cpl_image *mbias, const cpl_image *mflat,
38  const cpl_image *bpm, const cpl_table *photom, const cpl_frame *usnoa2,
39  const cpl_image *illum,const cpl_image *fringes, const cpl_image *nsky, double * zeropoint_final,
40  cpl_parameterlist *pars, int ext);
41 
42 cpl_image *omega_reduce_science(const cpl_frame *stdframe, cpl_image *mask_img,
43  cpl_parameterlist *pars, int ext);
44 
45 int omega_science_save_stare(cpl_image *img, cpl_table *tbl, cpl_frameset *set,
46  cpl_parameterlist *pars,cpl_propertylist *xlist, const char *procatg,const char *name,
47  cpl_propertylist *qclist,cpl_frame *inherit,cpl_frame *product_frame);
48 
49 int omega_science_save_jitter(omega_fits *scifits,cpl_frameset *set, cpl_parameterlist *pars,
50  cpl_propertylist *qclist, const char *jitter_name,
51  cpl_frame *product_frame, cpl_frame *inherit, const int isfirst);
52 
53 int omega_science_save_stack(cpl_image *img, cpl_frameset *set, cpl_parameterlist *pars,
54  cpl_propertylist *alist, cpl_propertylist *qclist, const char *outname,
55  cpl_frame *product_frame, const int isfirst);
56 
57 int omega_science_save_conf(cpl_image *img, cpl_frameset *set, cpl_parameterlist *pars,
58  const cpl_propertylist *alist, cpl_propertylist *qclist, const char *outname,
59  cpl_frame *product_frame, const int isfirst);
60 
61 int omega_science_save_table(cpl_table *tbl, cpl_frameset *set, cpl_parameterlist *pars,
62  cpl_propertylist *alist, cpl_propertylist *qclist, const char *outname,
63  cpl_frame *product_frame, const int isfirst);
64 
65 /*
66  * OLD prototypes. To be reviewed and deprecated
67  */
68 int reduce_sci_direct(cpl_parameterlist *, cpl_frameset *);
69 int reduce_sci_dither(cpl_parameterlist *, cpl_frameset *);
70 int reduce_sci_jitter(cpl_parameterlist *, cpl_frameset *);
71 
72 /*Input Frames are:
73 science, mbias, mflat, fringes, nsky, illum, maskimg, pars
74 */
75 /*cpl_image *make_reduced(cpl_frame *,cpl_frame *, cpl_frame *, cpl_frame *,
76  cpl_frame *, cpl_frame *, cpl_frame *,
77  cpl_mask *, cpl_parameterlist *);*/
78 
79 cpl_image *make_reduced(cpl_frame *,cpl_frame *, cpl_frame *, cpl_frame *,
80  cpl_frame *, cpl_frame *,cpl_image *, cpl_parameterlist *);
81 
82 
83 cpl_imagelist *make_reduced_jitter(cpl_imagelist *,cpl_frame *,cpl_frame *,
84  cpl_frame *, cpl_frame *, cpl_frame *,
85  cpl_imagelist *, cpl_parameterlist *);
86 
87 /*For tests using file oc_sci_jitter_test.c*/
88 int reduce_sci_jitter_test(cpl_parameterlist *, cpl_frameset *);
89 
90 
91 #endif