MIDI Pipeline Reference Manual  2.8.3
procWavCal.h
1 /**********************************************************
2 ***********************************************************
3 * European Southern Observatory
4 * VLTI MIDI Maintenance Templates Software
5 *
6 * Module name: procWavCal.h
7 * Description:
8 *
9 *
10 * History:
11 * 02-Jun-05 (csabet) Created
12 ***********************************************************
13 **********************************************************/
14 #ifndef _PROC_WAV_CAL_H
15 #define _PROC_WAV_CAL_H
16 
17 /**********************************************************
18 * Include files
19 **********************************************************/
20 
21 /**********************************************************
22 * Constant definitions
23 **********************************************************/
24 
25 /**********************************************************
26 * Enumeration definitions
27 **********************************************************/
28 
29 /**********************************************************
30 * Type definitions
31 **********************************************************/
32 
33 /**********************************************************
34 * Function Prototypes
35 **********************************************************/
36 void midiPolyFit (
37  int order,
38  int *xCoord,
39  float *yCoord,
40  int numOfIn,
41  int numOfOut,
42  float *yOut,
43  int *error);
44 
45 void removeDark (
46  ImageFormat *format,
47  WaveCalibration *waveCal,
48  int *error);
49 
50 int getWlCalib2Spectra (
51  MidiFiles *fileNames,
52  int *error);
53 
54 void procWaveCal (
55  int processing,
56  MidiFiles *fileNames,
57  int *error);
58 
59 void correlateWaveCalibDB (
60  MidiFiles *fileNames,
61  WaveCalibration *waveCal,
62  ImageFormat *format,
63  int *error);
64 
65 void computeWaveCal (
66  int processing,
67  int numOfFiles,
68  MidiFiles *fileNames,
69  WaveCalibration *waveCal,
70  int *error);
71 
72 void compressWaveCal (
73  int fileNumber,
74  char *fileName,
75  int extensionNumber,
76  ImageFormat *format,
77  WaveCalibration *waveCal,
78  int *error);
79 
80 void validateWaveCalData (
81  int fileNumber,
82  char *fileName,
83  WaveCalibration *compressed,
84  ImageFormat *format,
85  int *error);
86 
87 void calibrateWaveChannels (
88  int processing,
89  MidiFiles *fileNames,
90  WaveCalibration *waveCal,
91  ImageFormat *format,
92  int *error);
93 
94 void fitFilterSpectra (
95  WaveCalibration *waveCal,
96  ImageFormat *format,
97  int *error);
98 
99 void fitFoilSpectra (
100  MidiFiles *fileNames,
101  WaveCalibration *waveCal,
102  ImageFormat *format,
103  int *error);
104 
105 void fitOpenSpectra (
106  int *error);
107 
108 void getFilterSpectra (
109  int region,
110  const char *filter,
111  float *image,
112  ImageFormat *format,
113  float *xCPH,
114  float *yCPH,
115  int *error);
116 
117 void getFoilSpectra (
118  int region,
119  const char *filter,
120  float *image,
121  ImageFormat *format,
122  float *spectra,
123  int *error);
124 
125 void calibrateWaveFromNBF (
126  WaveCalibration *waveCal,
127  ImageFormat *format,
128  int *error);
129 
130 void createWaveCalibDB (
131  MidiFiles *fileNames,
132  WaveCalibration *waveCal,
133  ImageFormat *format,
134  int *error);
135 
136 /*********************************************************/
137 #endif
138 /*********************************************************/
139 /*********************************************************/
140