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 00021 File name : sinfo_detlin_cfg.h 00022 Author : Juergen Schreiber 00023 Created on : April 2002 00024 Description : sinfo_detlin_ini definitions + handling prototypes 00025 ---------------------------------------------------------------------------*/ 00026 #ifndef SINFO_DETLIN_CFG_H 00027 #define SINFO_DETLIN_CFG_H 00028 /*--------------------------------------------------------------------------- 00029 Includes 00030 ---------------------------------------------------------------------------*/ 00031 #include <stdlib.h> 00032 #include "sinfo_globals.h" 00033 #include <cpl.h> 00034 /*--------------------------------------------------------------------------- 00035 Defines 00036 ---------------------------------------------------------------------------*/ 00037 /*--------------------------------------------------------------------------- 00038 New types 00039 ---------------------------------------------------------------------------*/ 00040 /* 00041 bad pixels search blackboard container 00042 00043 This structure holds all information related to the bad pixels search 00044 routine. It is used as a container for the flux of ancillary data, 00045 computed values, and algorithm status. Pixel flux is separated from 00046 the blackboard. 00047 */ 00048 00049 typedef struct detlin_config { 00050 /*-------General---------*/ 00051 char inFile[FILE_NAME_SZ] ; /* file name of the file containing 00052 the list of all input frames */ 00053 char outName[FILE_NAME_SZ] ; /* output name of resulting bad pixel 00054 mask (fits file)*/ 00055 char ** framelist ; /* list of frames */ 00056 int nframes ; /* number of frames in frame list */ 00057 00058 /*------ Response------*/ 00059 /* order of the fit polynomial */ 00060 int order ; 00061 /* factor to the standard deviation of the zero and slope polynomial 00062 coefficient. if the deviation exceeds the resulting value the 00063 corresponding pixel is declared as bad */ 00064 double threshSigmaFactor ; 00065 /*if a non-linear coefficient exceeds this value the corresponding 00066 pixel is declared as bad*/ 00067 double nonlinearThresh ; 00068 /* percentage of rejected low intensity pixels before determining 00069 image statistics (mean and standard deviation)*/ 00070 float loReject ; 00071 /* percentage of rejected high intensity pixels before determining 00072 image statistics (mean and standard deviation) */ 00073 float hiReject ; 00074 /*name of the data cube storing the found polynomial coefficients*/ 00075 char coeffsCubeName[FILE_NAME_SZ] ; 00076 } detlin_config ; 00077 00078 /*--------------------------------------------------------------------------- 00079 Function prototypes 00080 ---------------------------------------------------------------------------*/ 00088 detlin_config * 00089 sinfo_detlin_cfg_create(void); 00090 00097 void 00098 sinfo_detlin_cfg_destroy(detlin_config * sc); 00099 00100 #endif