MIDI Pipeline Reference Manual  2.8.3
calibration.h
1 /**********************************************************
2 ***********************************************************
3 * European Southern Observatory
4 * VLTI MIDI Data Reduction Software
5 *
6 * Module name: calibration.h
7 * Description:
8 *
9 *
10 * History:
11 * 24-Sep-03 (csabet)
12 ***********************************************************
13 **********************************************************/
14 #ifndef _CALIBRATION_H
15 #define _CALIBRATION_H
16 
17 /**********************************************************
18 * Include files
19 **********************************************************/
20 #include "midiLib.h"
21 
22 /**********************************************************
23 * Constant definitions
24 **********************************************************/
25 
26 /**********************************************************
27 * Global Variables
28 **********************************************************/
29 
30 /**********************************************************
31 * Type definitions
32 **********************************************************/
33 
34 /**********************************************************
35 * Function Prototypes
36 **********************************************************/
37 void calibrateWaveUsingPolynom (
38  MidiFiles *fileNames,
39  ImageFormat *format);
40 
41 void getWaveCalPoly (
42  MidiFiles *fileNames,
43  ImageFormat *imageFormat,
44  int *error);
45 
46 void getCalibratedChWave (
47  MidiFiles *fileNames,
48  ImageFormat *format,
49  float **waveCal,
50  int *error);
51 
52 void createMaskSP (
53  char *inFileName,
54  char *maskFileName,
55  int *error);
56 
57 void createMaskFile (
58  MidiFiles *fileNames,
59  int *error);
60 
61 void prepareMasterFlat (void);
62 
63 void prepareMasterDark (void);
64 
65 void prepareDispersionRelation (void);
66 
67 void preparePhotomAperMask (
68  char *fileName,
69  char *maskName,
70  int *error);
71 
72 void prepareSpectroPhotomAperMask (void);
73 
74 void prepareZeroPoint (void);
75 
76 void prepareSpectralSensitivity (void);
77 
78 void checkDelayLineJumps (
79  const char *dataKey,
80  ImageFormat *format,
81  CompressedData *compressed);
82 
83 void checkDelayLineConsistencies (
84  const char *dataKey1,
85  const char *dataKey2,
86  CompressedData *compressedInterf,
87  CompressedData *compressedPhotom,
88  ImageFormat *formatInterf,
89  ImageFormat *formatPhotom,
90  int *error);
91 
92 
93 
94 
95 /*********************************************************/
96 #endif
97 /*********************************************************/
98