OMEGA Pipeline Reference Manual  1.0.6
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
int omega_pfits_get_overscan(const cpl_frame *frame, int xn)
Get the DRS keyword of the overscan method used to reduce the image.
Definition: omega_pfits.c:912
double omega_pfits_get_exptime(const cpl_propertylist *)
Get the EXPTIME value.
Definition: omega_pfits.c:193
int omega_pfits_get_detlive(const cpl_propertylist *plist, int *detlive)
Get the value of DET_LIVE.
Definition: omega_pfits.c:214
void omega_pfits_get_airmass(const cpl_propertylist *, double *, double *)
Reads the airmass keywords from the header.
Definition: omega_pfits.c:745
double omega_pfits_get_dit(const cpl_propertylist *)
Get the DIT keyword value from the header.
Definition: omega_pfits.c:154
void omega_pfits_get_readnoise(cpl_propertylist *, double *)
Get the read noise value from a header.
Definition: omega_pfits.c:870
cpl_vector * omega_pfits_get_preovscan(const cpl_propertylist *plist)
This function gets the prescan and overscan keywords from the header.
Definition: omega_pfits.c:1564
int omega_pfits_get_orientation(const char *)
Get chip orientation based on chip name.
Definition: omega_pfits.c:245
void omega_pfits_get_conad(cpl_propertylist *plist, double *conad)
Get the value of the keyword CONAD.
Definition: omega_pfits.c:995
void omega_pfits_get_chip_size(const cpl_propertylist *plist, int *xs, int *ys)
Get the size of a CCD excluding the pre/overscan regions.
Definition: omega_pfits.c:1838
double omega_pfits_get_dither_offsety(cpl_propertylist *plist)
Read offset Y keyword of DITHER header.
Definition: omega_pfits.c:1679
double omega_pfits_get_cd22(const cpl_propertylist *plist)
Get the value of cd2_2.
Definition: omega_pfits.c:1799
const char * omega_pfits_get_templateid(const cpl_propertylist *)
Get the template ID.
Definition: omega_pfits.c:169
double omega_pfits_get_dither_offsetx(cpl_propertylist *plist)
Read offset X keyword of DITHER header.
Definition: omega_pfits.c:1658
double omega_pfits_get_mjdobs(const cpl_propertylist *)
Get the MJD-OBS.
Definition: omega_pfits.c:181
int omega_compare_extname(cpl_propertylist *plist1, cpl_propertylist *plist2)
Compare the EXTNAME value of two headers.
Definition: omega_pfits.c:1109
void omega_pfits_get_xysize(const char *, int *, int *)
Get xy sizes of a chip.
Definition: omega_pfits.c:319
int omega_pfits_get_instrume(const cpl_propertylist *)
Get the INSTRUME keyword value.
Definition: omega_pfits.c:834
double omega_pfits_get_offset_delta(cpl_propertylist *plist)
Read offset DELTA keyword of OFFSET header.
Definition: omega_pfits.c:1721
double omega_pfits_get_cd12(const cpl_propertylist *plist)
Get the value of cd1_2.
Definition: omega_pfits.c:1761
double omega_pfits_get_cdelt2(const cpl_propertylist *plist)
Get the value of CDELT2.
Definition: omega_pfits.c:1818
int omega_pfits_check_instrume(const cpl_frame *)
Check if INSTRUME is WFI or OMEGA.
Definition: omega_pfits.c:785
const char * omega_pfits_get_arcfile(const cpl_propertylist *)
Prototypes of functions to access FITS header information.
Definition: omega_pfits.c:142
double omega_pfits_get_offset_alpha(cpl_propertylist *plist)
Read offset ALPHA keyword of OFFSET header.
Definition: omega_pfits.c:1700
void omega_pfits_get_mean_airmass(const cpl_propertylist *, double *)
Calculates the mean airmass from a FITS header.
Definition: omega_pfits.c:697
int omega_pfits_update_header(cpl_propertylist *to, const cpl_propertylist *from)
Copy all properties from one plist to another.
Definition: omega_pfits.c:1522
const char * omega_pfits_get_extname(const cpl_propertylist *plist)
Get the EXTNAME keyword of a header.
Definition: omega_pfits.c:1087
const char * omega_pfits_get_chipid(const cpl_propertylist *plist)
Get CHIP ID from header.
Definition: omega_pfits.c:1044
cpl_propertylist * omega_pfits_get_filter_info(const cpl_propertylist *main)
Gets filter information from header.
Definition: omega_pfits.c:1154
double omega_pfits_get_cd21(const cpl_propertylist *plist)
Get the value of cd2_1.
Definition: omega_pfits.c:1780
double omega_pfits_get_jitter_offset(cpl_propertylist *plist)
Read offset keyword of JITTER header.
Definition: omega_pfits.c:1637
void omega_pfits_get_gain(cpl_propertylist *, double *)
Read the gain value from an image.
Definition: omega_pfits.c:952
double omega_pfits_get_cd11(const cpl_propertylist *plist)
Get the value of cd1_1.
Definition: omega_pfits.c:1743