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_detnoise_cfg.h 00022 Author : Juergen Schreiber 00023 Created on : September 2002 00024 Description : sinfo_detnoise_ini definitions + handling prototypes 00025 ---------------------------------------------------------------------------*/ 00026 #ifndef SINFO_DETNOISE_CFG_H 00027 #define SINFO_DETNOISE_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 detnoise_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 00054 pixel mask (fits file)*/ 00055 char ** framelist ; /* list of frames */ 00056 int nframes ; /* number of frames in frame list */ 00057 00058 /*------searchBad------*/ 00059 /* factor to the standard deviation of the mean standard deviation. */ 00060 double threshSigmaFactor ; 00061 /* percentage of rejected low intensity pixels before determining 00062 image statistics (mean and standard deviation)*/ 00063 float loReject ; 00064 /* percentage of rejected high intensity pixels before determining 00065 image statistics (mean and standard deviation) */ 00066 float hiReject ; 00067 } detnoise_config ; 00068 /*--------------------------------------------------------------------------- 00069 Function prototypes 00070 ---------------------------------------------------------------------------*/ 00078 detnoise_config * 00079 sinfo_detnoise_cfg_create(void); 00086 void 00087 sinfo_detnoise_cfg_destroy(detnoise_config * sc); 00088 00089 #endif