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_psf_cfg.h 00022 Author : Juergen Schreiber 00023 Created on : February 2002 00024 Description : psf_cfg.c definitions + handling prototypes 00025 ---------------------------------------------------------------------------*/ 00026 #ifndef SINFO_PSF_CFG_H 00027 #define SINFO_PSF_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 PSF star image reconstruction blackboard container 00042 00043 This structure holds all information related to the sinfo_psf reconstruction 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 psf_config { 00050 /*-------General---------*/ 00051 char inFrame[FILE_NAME_SZ] ; /* input averaged, bad pixel corrected, 00052 off subtracted, flatfielded, spectral 00053 tilt corrected list of frames */ 00054 char outName[FILE_NAME_SZ] ; /* output name of resulting fits 00055 data cube */ 00056 00057 /*------ Reconstruction ------*/ 00058 /* the fraction [0...1] of rejected low intensity pixels when taking 00059 the average of columns */ 00060 float lo_reject ; 00061 /* the fraction [0...1] of rejected high intensity pixels when taking 00062 the average of columns */ 00063 float hi_reject ; 00064 /* indicates if the slitlet distances are determined by a 00065 north-south test (1) or slitlet edge fits (0) */ 00066 int northsouthInd ; 00067 /* name of the ASCII list of the fitted slitlet edge positions or 00068 the distances of the slitlets */ 00069 char poslist[FILE_NAME_SZ] ; 00070 /* number of slitlets (32) */ 00071 int nslits ; 00072 /* sub pixel position of the column position of the left sinfo_edge of 00073 the first slitlet needed if the slitlet distances were determined 00074 by a north south test */ 00075 char firstCol[FILE_NAME_SZ] ; 00076 /* indicator for the shifting method to use */ 00077 char method[1] ; 00078 /* order of polynomial if the polynomial interpolation shifting 00079 method is used */ 00080 int order ; 00081 } psf_config ; 00082 00083 /*--------------------------------------------------------------------------- 00084 Function prototypes 00085 ---------------------------------------------------------------------------*/ 00093 psf_config * 00094 sinfo_psf_cfg_create(void); 00095 00102 void 00103 sinfo_psf_cfg_destroy(psf_config * cc); 00104 00105 #endif