28 #ifndef SINFO_GLOBALS_H
29 #define SINFO_GLOBALS_H
34 #define SINFO_RESAMP_NROWS 2560
35 #define PI_NUMB (3.1415926535897932384626433832795)
38 #define QC_DID_ID "SINFONI-1.0.0"
39 #define FILE_NAME_SZ 512
40 #define MAX_NAME_SIZE 512
41 #define TELESCOPE_SURFACE 52.8101279
44 #define NOISE_NSAMPLES 100
45 #define SINFO_DBL_MIN 1e-37
46 #define SINFO_DBL_MAX 1e+37
48 #define IMA_PIX_START 0
49 #define IMA_PIX_END 2047
53 #define DET_PIX_MAX 2048
61 #define DISTORTION_LOPOS 974
62 #define DISTORTION_HIPOS 1074
64 #define GRAT_VAL1_HK 3997330
65 #define GRAT_VAL2_HK 3997339
66 #define GRAT_VAL1_H 2948723
67 #define GRAT_VAL2_H 2948733
68 #define GRAT_VAL1_K 1893844
69 #define GRAT_VAL2_K 1893854
70 #define GRAT_VAL1_J 849618
71 #define GRAT_VAL2_J 849628
72 #define GRAT_VAL_TOL 4
75 #define BKG_VARIANCE 9.6
79 #define MSG_OVER_WRITE_PAR "Using default data reduction parameters"
81 #define LAMP_OFF FALSE
84 #if defined CPL_VERSION_CODE && CPL_VERSION_CODE >= CPL_VERSION(6, 3, 0)
85 #define cpl_frameset_get_frame cpl_frameset_get_position
86 #define cpl_frameset_get_frame_const cpl_frameset_get_position_const
95 typedef struct amoeba_ amoeba_dat;
97 amoeba_dat* sinfo_amoeba_new(cpl_vector* vx,
101 void sinfo_amoeba_delete(amoeba_dat** a);
111 typedef struct qc_log_ qc_log;
114 char pro_class[FILE_NAME_SZ];
125 typedef struct fake_ fake;
126 fake* sinfo_fake_new(
void);
127 void sinfo_fake_delete(fake** f);
147 typedef struct wcal_ wcal;
149 wcal* sinfo_wcal_new(
void);
150 void sinfo_wcal_delete(wcal* f);
154 char do_class[FILE_NAME_SZ];
155 char index_list[FILE_NAME_SZ];
159 typedef struct stack_ stack;
161 stack* sinfo_stack_new(
void);
162 void sinfo_stack_delete(stack* s);
171 typedef struct nst_ nstpar;
173 nstpar* sinfo_nstpar_new(
void);
174 void sinfo_nstpar_delete(nstpar* n);
180 typedef struct dist_ distpar;
182 distpar* sinfo_distpar_new(
void);
183 void sinfo_distpar_delete(distpar* d);