00001
00002 /*---------------------------------------------------------------------------
00003
00004 File name : lamp_cfg.h
00005 Author : Juergen Schreiber
00006 Created on : March 2002
00007 Description : lamp_ini definitions + handling prototypes
00008
00009 ---------------------------------------------------------------------------*/
00010
00011
00012 #ifndef _LAMP_CFG_H_
00013 #define _LAMP_CFG_H_
00014
00015 /*---------------------------------------------------------------------------
00016 Includes
00017 ---------------------------------------------------------------------------*/
00018
00019 /*
00020 #include <stdio.h>
00021 */
00022 #include <stdlib.h>
00023 #include "static_sz.h"
00024
00025
00026 /*---------------------------------------------------------------------------
00027 Defines
00028 ---------------------------------------------------------------------------*/
00029
00030
00031 /*---------------------------------------------------------------------------
00032 New types
00033 ---------------------------------------------------------------------------*/
00034
00035
00036 /*
00037 prepare lamp spectrum blackboard container
00038
00039 This structure holds all information related to the halogen lamp spectrum handling
00040 routine. It is used as a container for the flux of ancillary data,
00041 computed values, and algorithm status. Pixel flux is separated from
00042 the blackboard.
00043 */
00044
00045 /*<python>*/
00046 typedef struct lamp_config {
00047 /*-------General---------*/
00048 char inFrame[FILENAMESZ] ; /* file name of the input halogen lamp frame */
00049 char wavemapim[FILENAMESZ] ; /* file name of the wavelength map */
00050 char outName[FILENAMESZ] ; /* output name of resulting fits frame */
00051 /*------ Resampling ------*/
00052 /* number of coefficients for the polynomial interpolation (order + 1) */
00053 int ncoeffs ;
00054 /* number of rows in the resulting resampled image = number of spectral bins */
00055 int nrows ;
00056 /*------ Extractspectrum ------*/
00057 /* percentage of rejected low intensity pixels */
00058 float loReject ;
00059 /* percentage of rejected high intensity pixels */
00060 float hiReject ;
00061 /* conversion factor of detector counts per intensity unit */
00062 float countsToIntensity ;
00063 } lamp_config ;
00064 /*</python>*/
00065
00066
00067
00068 /*---------------------------------------------------------------------------
00069 Function prototypes
00070 ---------------------------------------------------------------------------*/
00071
00072
00073 /*---------------------------------------------------------------------------
00074 Function : lamp_cfg_create()
00075 In : void
00076 Out : pointer to allocated base lamp_cfg structure
00077 Job : allocate memory for a lamp_cfg struct
00078 Notice : only the main (base) structure is allocated
00079 ---------------------------------------------------------------------------*/
00080
00081 lamp_config * lamp_cfg_create(void);
00082
00083
00084 /*---------------------------------------------------------------------------
00085 Function : lamp_cfg_destroy()
00086 In : lamp_config to deallocate
00087 Out : void
00088 Job : deallocate all memory associated with a lamp_config data structure
00089 Notice :
00090 ---------------------------------------------------------------------------*/
00091 /*<python>*/
00092 void lamp_cfg_destroy(lamp_config * sc);
00093 /*</python>*/
00094
00095 #endif
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001