sinfoni_globals.h

00001 /* $Id: sinfoni_globals.h,v 1.12 2005/07/09 14:48:41 amodigli Exp $
00002  *
00003  * This file is part of the SINFONI Pipeline
00004  * Copyright (C) 2002,2003 European Southern Observatory
00005  *
00006  * This proram is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 /*
00022  * $Author: amodigli $
00023  * $Date: 2005/07/09 14:48:41 $
00024  * $Revision: 1.12 $
00025  * $Name:  $
00026  */
00027 
00028 #ifndef SINFONI_GLOBALS_H
00029 #define SINFONI_GLOBALS_H
00030 
00031 /*------------------------------------------------------------------------
00032                                 Defines
00033  --------------------------------------------------------------------------*/
00034 
00035 #define QC_DID_ID                          "SINFONI-1.0.0"
00036 #define FILE_NAME_SZ                       512
00037 #define MAX_NAME_SIZE                      512
00038 #define TELESCOPE_SURFACE                  52.8101279
00039 
00040 #define NOISE_HSIZE                        4
00041 #define NOISE_NSAMPLES                     100
00042 
00043 #define IMA_PIX_START                      0
00044 #define IMA_PIX_END                        2047
00045 #define SIZEX                              2048
00046 #define SIZEY                              2048
00047 #define DET_PIX_MIN                        1
00048 #define DET_PIX_MAX                        2048
00049 
00050 
00051 #define LLX                                1350
00052 #define LLY                                1000
00053 #define URX                                1390
00054 #define URY                                1200
00055 
00056 #define DISTORTION_LOPOS                    974
00057 #define DISTORTION_HIPOS                   1074
00058 
00059 #define GRAT_VAL1_HK                       3997330
00060 #define GRAT_VAL2_HK                       3997339
00061 #define GRAT_VAL1_H                        2948723
00062 #define GRAT_VAL2_H                        2948733
00063 #define GRAT_VAL1_K                        1893844
00064 #define GRAT_VAL2_K                        1893854
00065 #define GRAT_VAL1_J                         849618
00066 #define GRAT_VAL2_J                         849628
00067 #define GRAT_VAL_TOL                             4
00068 
00069 #define SKY_FLUX                                 0
00070 #define BKG_VARIANCE                            9.6
00071 #define GAIN                                    2.42
00072 #define MAGNITUDE                              11
00073 
00074 #define MSG_OVER_WRITE_PAR        "Using default data reduction parameters"
00075 #define LAMP_ON     TRUE
00076 #define LAMP_OFF    FALSE
00077 
00078 
00079 struct qc_log_ {
00080   char   name[30];
00081   char   type[30];
00082   char   s_val[30];
00083   char   comm[30];
00084   double n_val;
00085   int    n;
00086 };
00087 typedef struct qc_log_ qc_log; 
00088 
00089 struct fake_ {
00090   char  pro_class[FILE_NAME_SZ];
00091   int   frm_switch;
00092   int   mask_index;
00093   int   ind_index;
00094   int   flat_index;
00095   int   wfix_index;
00096   double   low_rej;
00097   double   hig_rej;
00098 };
00099 
00100 typedef struct fake_ fake;
00101 fake* fake_new(void);
00102 void fake_delete(fake* f);
00103 
00104 
00105 struct wcal_ {
00106   double wstart;
00107   double wgdisp1;
00108   double wgdisp2;
00109   double min_dif;
00110   double fwhm;
00111   double min_amp;
00112   double pixel_tol;
00113   double y_box;
00114   int low_pos;
00115   int hig_pos;
00116   int    hw;
00117   int    na_coef;
00118   int    nb_coef;
00119 
00120 };
00121 
00122 typedef struct wcal_ wcal;
00123 
00124 wcal* wcal_new(void);
00125 void wcal_delete(wcal* f);
00126 
00127 
00128 struct stack_ {
00129   char do_class[FILE_NAME_SZ];
00130   char index_list[FILE_NAME_SZ];
00131   int  warp_fix_ind;
00132 };
00133 
00134 typedef struct stack_ stack;
00135 
00136 stack* stack_new(void);
00137 void stack_delete(stack* s);
00138 
00139 
00140 
00141 struct nst_ {
00142   double min_dif[4];
00143   double fwhm[4];
00144 };
00145 
00146 typedef struct nst_ nstpar;
00147 
00148 nstpar* nstpar_new(void);
00149 void nstpar_delete(nstpar* n);
00150 
00151 struct dist_ {
00152   double diff_tol[4];
00153 };
00154 
00155 typedef struct dist_ distpar;
00156 
00157 distpar* distpar_new(void);
00158 void distpar_delete(distpar* d);
00159 
00160 
00161 #endif

Generated on Wed Oct 26 13:08:55 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001