sinfo_tilt_cfg.h

00001 /*
00002  * This file is part of the ESO SINFONI Pipeline
00003  * Copyright (C) 2004,2005 European Southern Observatory
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00018  */
00019 /*---------------------------------------------------------------------------
00020    File name     :    sinfo_tilt_cfg.h
00021    Author         :    Juergen Schreiber
00022    Created on    :    October 2001
00023    Description    :    tilt_ini definitions + handling prototypes
00024  ---------------------------------------------------------------------------*/
00025 #ifndef SINFO_TILT_CFG_H
00026 #define SINFO_TILT_CFG_H
00027 /*---------------------------------------------------------------------------
00028                                    Includes
00029  ---------------------------------------------------------------------------*/
00030 #include <stdlib.h>
00031 #include "sinfo_globals.h"
00032 #include <cpl.h>
00033 /*---------------------------------------------------------------------------
00034                                    Defines
00035  ---------------------------------------------------------------------------*/
00036 /*---------------------------------------------------------------------------
00037                                    New types
00038  ---------------------------------------------------------------------------*/
00039 /*
00040   determination of spectral tilt blackboard container
00041 
00042   This structure holds all information related to the determination 
00043   of the spectral tilt routine. It is used as a container for the flux 
00044   of ancillary data, computed values, and algorithm status. Pixel flux 
00045   is separated from the blackboard.
00046   */
00047 
00048 typedef struct tilt_config {
00049 /*-------General---------*/
00050         char inFile[FILE_NAME_SZ] ;    /* file name of the file containing 
00051                                           the list of all input frames */
00052         char outName[FILE_NAME_SZ] ;   /* output name of resulting fits 
00053                                           wavelength map */
00054         char ** framelist ; /* list of frames */
00055         int  *  frametype ; /* list of frame types on or off */
00056         int     nframes ;   /* number of frames in frame list */
00057         int     nobj ;      /* number of object frames in frame list */
00058         int     noff ;      /* number of off frames in frame list */
00059 
00060 /*------ CleanMean ------*/
00061         /* percentage of rejected low intensity pixels */
00062         float loReject ;
00063         /* percentage of rejected high intensity pixels */
00064         float hiReject ;
00065         /* file name of the bad pixel mask fits file */
00066         char mask[FILE_NAME_SZ] ;
00067 
00068 /*------ Slope ------*/
00069         /* width of a box along the slitlets within which the spectrum 
00070            is fitted by a Gaussian */
00071         int box_length ;
00072         /* initial guess of the FWHM */
00073         float fwhm ;
00074         /* amplitude below which the fit is not carried through */
00075         float minDiff ;
00076 
00077 } tilt_config ;
00078 
00079 /*---------------------------------------------------------------------------
00080                                Function prototypes
00081  ---------------------------------------------------------------------------*/
00089 tilt_config * 
00090 sinfo_tilt_cfg_create(void);
00091 
00092 
00100 void 
00101 sinfo_tilt_cfg_destroy(tilt_config * sc);
00102 
00103 #endif

Generated on 3 Mar 2013 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1