procWavCal.h

00001 /**********************************************************
00002 ***********************************************************
00003 *               European Southern Observatory
00004 *          VLTI MIDI Maintenance Templates Software
00005 *
00006 * Module name:  procWavCal.h
00007 * Description:  
00008 *
00009 *
00010 * History:      
00011 * 02-Jun-05     (csabet) Created
00012 ***********************************************************
00013 **********************************************************/
00014 #ifndef _PROC_WAV_CAL_H
00015 #define _PROC_WAV_CAL_H
00016 
00017 /**********************************************************
00018 *   Include files
00019 **********************************************************/
00020 
00021 /**********************************************************
00022 *   Constant definitions
00023 **********************************************************/
00024 
00025 /**********************************************************
00026 *   Enumeration definitions
00027 **********************************************************/
00028 
00029 /**********************************************************
00030 *   Type definitions 
00031 **********************************************************/
00032 
00033 /**********************************************************
00034 *   Function Prototypes
00035 **********************************************************/
00036 void midiPolyFit (
00037     int     order,
00038     int     *xCoord,
00039     float   *yCoord,
00040     int     numOfIn,
00041     int     numOfOut,
00042     float   *yOut,
00043     int     *error);
00044 
00045 void removeDark (
00046     ImageFormat     *format,
00047     WaveCalibration *waveCal,
00048     int             *error);
00049 
00050 int getWlCalib2Spectra (
00051     MidiFiles   *fileNames,
00052     int         *error);
00053 
00054 void procWaveCal (
00055     int         processing,
00056     MidiFiles   *fileNames,
00057     int         *error);
00058 
00059 void correlateWaveCalibDB (
00060     MidiFiles       *fileNames,
00061     WaveCalibration *waveCal,
00062     ImageFormat     *format,
00063     int             *error);
00064 
00065 void computeWaveCal (
00066     int             processing,
00067     int             numOfFiles,
00068     MidiFiles       *fileNames,
00069     WaveCalibration *waveCal,
00070     int             *error);
00071 
00072 void compressWaveCal ( 
00073     int             fileNumber,
00074     char            *fileName,
00075     int             extensionNumber,
00076     ImageFormat     *format,
00077     WaveCalibration *waveCal,
00078     int             *error);
00079 
00080 void validateWaveCalData (
00081     int             fileNumber,
00082     char            *fileName,
00083     WaveCalibration *compressed,
00084     ImageFormat     *format,
00085     int             *error);
00086 
00087 void calibrateWaveChannels (
00088     int             processing,
00089     MidiFiles       *fileNames,
00090     WaveCalibration *waveCal,
00091     ImageFormat     *format,
00092     int             *error);
00093 
00094 void fitFilterSpectra (
00095     WaveCalibration *waveCal,
00096     ImageFormat     *format,
00097     int             *error);
00098 
00099 void fitFoilSpectra (
00100     MidiFiles       *fileNames,
00101     WaveCalibration *waveCal,
00102     ImageFormat     *format,
00103     int             *error);
00104     
00105 void fitOpenSpectra (
00106     int *error);
00107 
00108 void getFilterSpectra (
00109     int         region,
00110     const char      *filter,
00111     float       *image,
00112     ImageFormat *format,
00113     float       *xCPH,
00114     float       *yCPH,
00115     int         *error);
00116 
00117 void getFoilSpectra (
00118     int         region,
00119     const char      *filter,
00120     float       *image,
00121     ImageFormat *format,
00122     float       *spectra,
00123     int         *error);
00124 
00125 void calibrateWaveFromNBF (
00126     WaveCalibration *waveCal,
00127     ImageFormat     *format,
00128     int             *error);
00129 
00130 void createWaveCalibDB (
00131     MidiFiles       *fileNames,
00132     WaveCalibration *waveCal,
00133     ImageFormat     *format,
00134     int             *error);
00135 
00136 /*********************************************************/
00137 #endif
00138 /*********************************************************/
00139 /*********************************************************/
00140 

Generated on 15 Mar 2012 for MIDI Pipeline Reference Manual by  doxygen 1.6.1