OMEGA Pipeline Reference Manual  1.0.5
omega_pfits.h
1 /* $Id: omega_pfits.h,v 1.1.1.1 2011-03-16 11:59:34 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-03-16 11:59:34 $
24  * $Revision: 1.1.1.1 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef OC_PFITS_H
29 #define OC_PFITS_H
30 
31 /*
32  * Includes
33  */
34 
35 #include <cpl.h>
36 
37 
45 const char * omega_pfits_get_arcfile(const cpl_propertylist *) ;
46 const char * omega_pfits_get_date_obs(const cpl_propertylist *);
47 const char * omega_pfits_get_templateid(const cpl_propertylist *);
48 const char *omega_pfits_get_chipid(const cpl_propertylist *plist);
49 const char * omega_pfits_get_extname(const cpl_propertylist *plist);
50 int omega_compare_extname(cpl_propertylist *plist1, cpl_propertylist *plist2);
51 
52 cpl_propertylist * omega_pfits_get_filter(const cpl_propertylist *, const cpl_propertylist *);
53 
54 double omega_pfits_get_dit(const cpl_propertylist *) ;
55 double omega_pfits_get_mjdobs(const cpl_propertylist *);
56 double omega_pfits_get_exptime(const cpl_propertylist *);
57 
58 extern int omega_pfits_get_detlive(const cpl_propertylist *plist, int *detlive);
59 
60 int omega_pfits_check_instrume (const cpl_frame *);
61 int omega_pfits_get_instrume (const cpl_propertylist *);
62 int omega_pfits_get_orientation (const char *);
63 int omega_pfits_get_overscan(const cpl_frame *frame, int xn);
64 
65 void omega_pfits_get_airmass(const cpl_propertylist *, double *, double *);
66 void omega_pfits_get_gain(cpl_propertylist *, double *);
67 void omega_pfits_get_conad(cpl_propertylist *plist, double *conad);
68 void omega_pfits_get_mean_airmass(const cpl_propertylist *, double *);
69 void omega_pfits_get_readnoise(cpl_propertylist *, double *);
70 void omega_pfits_get_xysize (const char *, int *, int *);
71 cpl_propertylist * omega_pfits_get_filter_info(const cpl_propertylist *main);
72 int omega_pfits_update_header(cpl_propertylist *to, const cpl_propertylist *from);
73 void omega_get_gain(int ext, double *gain);
74 cpl_vector * omega_pfits_get_preovscan(const cpl_propertylist *plist);
75 double omega_pfits_get_jitter_offset(cpl_propertylist *plist);
76 double omega_pfits_get_dither_offsetx(cpl_propertylist *plist);
77 double omega_pfits_get_dither_offsety(cpl_propertylist *plist);
78 double omega_pfits_get_offset_alpha(cpl_propertylist *plist);
79 double omega_pfits_get_offset_delta(cpl_propertylist *plist);
80 double omega_pfits_get_cd11(const cpl_propertylist *plist);
81 double omega_pfits_get_cd12(const cpl_propertylist *plist);
82 double omega_pfits_get_cd21(const cpl_propertylist *plist);
83 double omega_pfits_get_cd22(const cpl_propertylist *plist);
84 double omega_pfits_get_cdelt2(const cpl_propertylist *plist);
85 void omega_pfits_get_chip_size(const cpl_propertylist *plist,int *xs, int *ys);
86 
87 #endif