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_dark_cfg.h 00021 Author : Juergen Schreiber 00022 Created on : February 2002 00023 Description : sinfo_dark_cfg.c definitions + handling prototypes 00024 ---------------------------------------------------------------------------*/ 00025 #ifndef SINFO_DARK_CFG_H 00026 #define SINFO_DARK_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 master dark frame generation blackboard container 00041 00042 This structure holds all information related to the master dark 00043 frame generation 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 dark_config { 00050 /*-------General---------*/ 00051 char inFile[FILE_NAME_SZ] ; /* file name of frame list */ 00052 char ** inFrameList ; /* input averaged, bad pixel corrected, 00053 off subtracted, flatfielded, spectral 00054 tilt corrected list of frames */ 00055 int nframes ; /* number of frames in the list */ 00056 char outName[FILE_NAME_SZ] ; /* output name of resulting fits 00057 data cube */ 00058 00059 /*------ CleanMean ------*/ 00060 /* the fraction [0...1] of rejected low intensity pixels when 00061 taking the average of columns */ 00062 float lo_reject ; 00063 /* the fraction [0...1] of rejected high intensity pixels when 00064 taking the average of columns */ 00065 float hi_reject ; 00066 /*------ QCLOG ------*/ 00067 /* RON */ 00068 00069 int qc_ron_xmin; 00070 int qc_ron_xmax; 00071 int qc_ron_ymin; 00072 int qc_ron_ymax; 00073 int qc_ron_hsize; 00074 int qc_ron_nsamp; 00075 /* FPN */ 00076 int qc_fpn_xmin; 00077 int qc_fpn_xmax; 00078 int qc_fpn_ymin; 00079 int qc_fpn_ymax; 00080 int qc_fpn_hsize; 00081 int qc_fpn_nsamp; 00082 00083 } dark_config ; 00084 /*--------------------------------------------------------------------------- 00085 Function prototypes 00086 ---------------------------------------------------------------------------*/ 00094 dark_config * 00095 sinfo_dark_cfg_create(void); 00102 void 00103 sinfo_dark_cfg_destroy(dark_config * cc); 00104 00105 00106 #endif