00001 /* $Id: sinfo_wcal_functions.h,v 1.2 2006/10/22 14:12:28 amodigli Exp $ 00002 * 00003 * This file is part of the SINFONI Pipeline 00004 * Copyright (C) 2002,2003 European Southern Observatory 00005 * 00006 * This proram is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 /* 00022 * $Author: amodigli $ 00023 * $Date: 2006/10/22 14:12:28 $ 00024 * $Revision: 1.2 $ 00025 * $Name: HEAD $ 00026 */ 00027 #ifndef SINFO_WCAL_FUNCTIONS_H 00028 #define SINFO_WCAL_FUNCTIONS_H 00029 struct qc_wcal_ { 00030 00031 double avg_on; 00032 double std_on; 00033 double avg_of; 00034 double std_of; 00035 double avg_di; 00036 double std_di; 00037 double max_on; 00038 double max_of; 00039 double max_di; 00040 double nsat_on; 00041 double noise_on; 00042 double noise_of; 00043 double flux_on; 00044 double nsat; 00045 00046 }; 00047 00048 00049 00050 typedef struct qc_wcal_ qc_wcal; 00051 00052 /* extern struct qc_wcal qc_wcal_par; */ 00053 #include "sinfo_functions.h" 00054 #include <cpl.h> 00055 #include <sinfo_globals.h> 00056 #include <sinfo_spiffi_types.h> 00057 #include <sinfo_wavecal_cfg.h> 00058 #include "sinfo_msg.h" 00059 /* ---------------------------------------------------------------------- 00060 group of frames 00061 ---------------------------------------------------------------------- */ 00062 int sinfo_dumpTblToFitParams ( FitParams ** params, char * filename ); 00063 int sinfo_det_ncounts(cpl_frameset* raw, int thresh_max, qc_wcal* qc); 00064 qc_wcal* sinfo_qc_wcal_new(void); 00065 void sinfo_qc_wcal_delete(qc_wcal** qc); 00066 CPL_END_DECLS 00067 00068 #endif