OMEGA Pipeline Reference Manual  1.0.5
omega_dfs.h
1 /* $Id: omega_dfs.h,v 1.5 2012-08-30 06:44:50 agabasch Exp $
2  *
3  * This file is part of the OMEGA 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: 2012-08-30 06:44:50 $
24  * $Revision: 1.5 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef OMEGA_DFS_H
29 #define OMEGA_DFS_H
30 
31 #include <cpl.h>
32 #include <cpl_plot.h>
33 
34 /*-----------------------------------------------------------------------------
35  Define
36  -----------------------------------------------------------------------------*/
37 /*General definitions*/
38 #define BIAS 160
39 #define BITPIX CPL_BPP_IEEE_FLOAT
40 #define GAIN 2.0
41 #define PI 3.1415926535897932384626433832795
42 #define SEXTRACTOR_ARGC 30
43 #define MAXPATH 120
44 #define SQRT2 1.4142136
45 /* NOTE: Once CPL recalculates CHECKSUM and DATASUM, they should be
46  * removed from the list below
47  */
48 #define REM_EXT_KEYS "^(ESO OBS |ESO TEL |ESO INS |ORIGIN|TELESCOPE|INSTRUME|OBJECT|RA|DEC|EPOCH|EQUINOX|" \
49  "CHECKSUM|DATASUM|DATAMD5|RADECSYS|DATE-OBS|MJD-OBS|UTC|LST|PI-COI|OBSERVER|PIPEFILE).*$"
50 
51 #define REM_PRIM_KEYS "^(CHECKSUM|DATASUM)$"
52 #define TIMEOUT 60
53 
54 #define WCS_KEYS "WCSAXES|WCSNAME|(PC|CD|PV|PS)[0-9]+_[0-9]+|" \
55  "C(RVAL|RPIX|DELT|TYPE|UNIT|RDER|SYER)[0-9]+"
56 
57 /* Define here the PRO.CATG keywords */
58 /*#define RRRECIPE_XXX_PROCATG "THE_PRO_CATG_VALUE"*/
59 #define BCKG_PROCATG "BACKGROUND"
60 #define BPM_PROCATG "BAD_PIXELS_MAP"
61 
62 /* Science */
63 #define STACK_PROCATG "STACK_SCIENCE"
64 #define CONF_PROCATG "CONF_MAP_SCIENCE"
65 #define CAT_PROCATG "SCIENCE_CATALOGUE"
66 #define SIMPLE_STARE "SIMPLE_SCIENCE"
67 #define SIMPLE_JITTER "SIMPLE_JITTER"
68 #define SIMPLE_DITHER "SIMPLE_DITHER"
69 #define SIMPLE_OFFSET "SIMPLE_OFFSET"
70 #define SIMPLE_MASK "SIMPLE_MASK"
71 
72 /* Dome flat recipe */
73 #define MDOME_PROCATG "MASTER_FLAT_DOME"
74 #define CPM_PROCATG "COLD_PIXELS_MAP"
75 
76 /* shutter recipe */
77 #define SHUTTER_PROCATG "SHUTTER_TEST"
78 
79 /* Gain recipes */
80 #define GAIN_PROCATG "GAIN"
81 #define LG_PROCATG "GAIN_LINEARITY"
82 #define CUBE_PROCATG "LIN_COEFFS_CUBE"
83 #define LBPM_PROCATG "NON_LINEAR_BPM"
84 #define GDIFF_PROCATG "GAIN_DIFFERENCE"
85 #define ACORR_PROCATG "GAIN_AUTOCORR"
86 
87 /* Bias recipe */
88 #define HPM_PROCATG "HOT_PIXELS_MAP"
89 #define MBIAS_PROCATG "MASTER_BIAS"
90 
91 #define ILLUM_PROCATG "ILLUMINATION"
92 
93 /* Quick check recipe */
94 #define LTEST_PROCATG "LIFETEST_CHECK"
95 
96 /* Master flat recipe */
97 #define MFLAT_PROCATG "MASTER_FLAT"
98 #define MTWIL_PROCATG "MASTER_FLAT_TWILIGHT"
99 
100 /* Standard star recipe */
101 #define STD_PROCATG "REDUCED_STD"
102 #define ZP_PROCATG "ZEROPOINTS"
103 #define PHOT_PROCATG "PHOTOMETRIC_TABLE"
104 
105 /* dark current recipe */
106 #define OMEGA_CALIB_DARK "DARK_CURRENT"
107 #define DARK_PROCATG "MEAN_DARK"
108 
109 /* Others */
110 #define FRINGES_PROCATG "FRINGES_FLAT"
111 #define NSKY_PROCATG "MASTER_NIGHT_SKY_FLAT"
112 #define SATEMAP_PROCATG "SATELLITES_MAP"
113 #define SATUMAP_PROCATG "SATURATED_PIXELS_MAP"
114 #define COSMAP_PROCATG "COSMIC_RAYS_MAP"
115 
116 /* Define here the DO.CATG keywords (SOF tags)*/
117 #define DARK_RAW "DARK"
118 #define STARE_RAW "STARE"
119 #define DITHER_RAW "DITHER"
120 #define OFFSET_RAW "OFFSET"
121 #define FRINGES_RAW "FRINGES"
122 #define GAIN_FLAT "FLAT_DOME_DETGAIN"
123 #define GAIN_DARK "DARK_DETGAIN"
124 #define JITTER_RAW "JITTER"
125 #define LIFETEST_RAW "DOME_LIFETEST"
126 #define MBIAS_RAW "BIAS"
127 #define MDOME_RAW "DOME_FLAT"
128 #define MTWIL_RAW "TWILIGHT_FLAT"
129 #define RNOISE_RAW "BIAS_READNOISE"
130 #define STD_RAW "STD_ZEROPOINT"
131 #define NSKY_RAW "NIGHTSKY_FLAT"
132 #define SHUTTER_RAW "DOME_SHUTTERTEST"
133 
134 /* Static calibration frames */
135 #define OMEGA_CALIB_EXTCUR "EXTINCTION_CURVE"
136 #define OMEGA_CALIB_MONIT "MONITOR_REPORT"
137 #define OMEGA_CALIB_REFSTAR "REFERENCE_STAR_CATALOG"
138 #define OMEGA_CALIB_TWIL "MASTER_FLAT_TWILIGHT"
139 #define OMEGA_CALIB_ZP "ZEROPOINTS"
140 #define OMEGA_USNOA2 "MASTER_USNOA2_CATALOGUE"
141 #define OMEGA_CALIB_COLTERMS "COLOUR_TERMS"
142 #define OMEGA_CALIB_BIAS "MASTER_BIAS"
143 #define OMEGA_CALIB_BPM "BAD_PIXELS_MAP"
144 #define OMEGA_CALIB_CPM "COLD_PIXELS_MAP"
145 #define OMEGA_CALIB_DOME "MASTER_FLAT_DOME"
146 #define OMEGA_CALIB_FLAT "MASTER_FLAT"
147 #define OMEGA_CALIB_FRINGE "MASTER_FLAT_FRINGE"
148 #define OMEGA_CALIB_GAIN "GAIN_LINEARITY"
149 #define OMEGA_CALIB_HPM "HOT_PIXELS_MAP"
150 #define OMEGA_CALIB_ILLFIT "ILLUM_FIT_PAR"
151 #define OMEGA_CALIB_ILLUM "ILLUM_CORR"
152 #define OMEGA_CALIB_NSKY "MASTER_FLAT_NIGHT_SKY"
153 #define OMEGA_CALIB_RDNOISE "READNOISE_ADU"
154 
155 /* Define here the tags for the REFERENCE frames */
156 #define REFBIAS "REFERENCE_BIAS"
157 #define REFDOME "REFERENCE_DOME"
158 #define REFTWIL "REFERENCE_TWILIGHT"
159 #define REFMFLAT "REFERENCE_MFLAT"
160 
161 
162 /* Define here other PRO keywords??*/
163 #define OMEGA_PRODID "ESO-2P2-DIC.OMEGA-ICS v0.0" /*FIXME*/
164 
165 /*-----------------------------------------------------------------------------
166  Static variables
167  -----------------------------------------------------------------------------*/
168 
169 static const char PIPEID[] = PACKAGE "/" PACKAGE_VERSION;
170 static const char DICID[] = "PRO-1.15";
171 
172 /*-----------------------------------------------------------------------------
173  Functions prototypes
174  -----------------------------------------------------------------------------*/
175 
176 int oc_dfs_set_groups(cpl_frameset *) ;
177 
178 #endif