00001
00002 /*---------------------------------------------------------------------------
00003
00004 File name : tilt_cfg.h
00005 Author : Juergen Schreiber
00006 Created on : October 2001
00007 Description : tilt_ini definitions + handling prototypes
00008
00009 ---------------------------------------------------------------------------*/
00010
00011
00012 #ifndef _TILT_CFG_H_
00013 #define _TILT_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 determination of spectral tilt blackboard container
00038
00039 This structure holds all information related to the determination of the spectral tilt
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 tilt_config {
00047 /*-------General---------*/
00048 char inFile[FILENAMESZ] ; /* file name of the file containing the list of all input frames */
00049 char outName[FILENAMESZ] ; /* output name of resulting fits wavelength map */
00050 char ** framelist ; /* list of frames */
00051 int * frametype ; /* list of frame types on or off */
00052 int nframes ; /* number of frames in frame list */
00053 int nobj ; /* number of object frames in frame list */
00054 int noff ; /* number of off frames in frame list */
00055
00056 /*------ CleanMean ------*/
00057 /* percentage of rejected low intensity pixels */
00058 float loReject ;
00059 /* percentage of rejected high intensity pixels */
00060 float hiReject ;
00061 /* file name of the bad pixel mask fits file */
00062 char mask[FILENAMESZ] ;
00063
00064 /*------ Slope ------*/
00065 /* width of a box along the slitlets within which the spectrum is fitted by a Gaussian */
00066 int box_length ;
00067 /* initial guess of the FWHM */
00068 float fwhm ;
00069 /* amplitude below which the fit is not carried through */
00070 float minDiff ;
00071
00072 } tilt_config ;
00073 /*</python>*/
00074
00075
00076 /*---------------------------------------------------------------------------
00077 Function prototypes
00078 ---------------------------------------------------------------------------*/
00079
00080
00081 /*---------------------------------------------------------------------------
00082 Function : tilt_cfg_create()
00083 In : void
00084 Out : pointer to allocated base tilt_cfg structure
00085 Job : allocate memory for a tilt_cfg struct
00086 Notice : only the main (base) structure is allocated
00087 ---------------------------------------------------------------------------*/
00088
00089 tilt_config * tilt_cfg_create(void);
00090
00091
00092 /*---------------------------------------------------------------------------
00093 Function : tilt_cfg_destroy()
00094 In : tilt_config to deallocate
00095 Out : void
00096 Job : deallocate all memory associated with a tilt_config data structure
00097 Notice :
00098 ---------------------------------------------------------------------------*/
00099 /*<python>*/
00100 void tilt_cfg_destroy(tilt_config * sc);
00101 /*</python>*/
00102
00103 #endif
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001