00001 /* * 00002 * This file is part of the ESO UVES Pipeline * 00003 * Copyright (C) 2004,2005 European Southern Observatory * 00004 * * 00005 * This library 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 * $Author: amodigli $ 00022 * $Date: 2008/03/28 08:54:05 $ 00023 * $Revision: 1.5 $ 00024 * $Name: uves-3_9_0 $ 00025 * $Log: uves_obs_spatred_impl.c,v $ 00026 * Revision 1.5 2008/03/28 08:54:05 amodigli 00027 * IRPLIB_CONCAT2X-->UVES_CONCAT2X 00028 * 00029 * Revision 1.4 2007/06/11 13:28:26 jmlarsen 00030 * Changed recipe contact address to cpl at eso.org 00031 * 00032 * Revision 1.3 2007/06/08 13:06:16 jmlarsen 00033 * Send bug reports to Andrea 00034 * 00035 * Revision 1.2 2007/06/06 08:17:33 amodigli 00036 * replace tab with 4 spaces 00037 * 00038 * Revision 1.1 2007/02/09 13:34:38 jmlarsen 00039 * Added mkmaster+spatred recipes 00040 * 00041 * Revision 1.37 2006/11/06 15:19:41 jmlarsen 00042 * Removed unused include directives 00043 * 00044 * Revision 1.36 2006/10/25 07:21:52 jmlarsen 00045 * Documentation bug fix 00046 * 00047 * Revision 1.35 2006/10/24 14:02:38 jmlarsen 00048 * Factored out common UVES/FLAMES code 00049 * 00050 * Revision 1.34 2006/10/17 12:33:02 jmlarsen 00051 * Added semicolon at UVES_RECIPE_DEFINE invocation 00052 * 00053 * Revision 1.33 2006/10/09 13:01:13 jmlarsen 00054 * Use macro to define recipe interface functions 00055 * 00056 * Revision 1.32 2006/09/20 12:53:57 jmlarsen 00057 * Replaced stringcat functions with uves_sprintf() 00058 * 00059 * Revision 1.31 2006/09/19 14:31:10 jmlarsen 00060 * uves_insert_frame(): use bitmap to specify which image statistics keywords must be computed 00061 * 00062 * Revision 1.30 2006/09/19 06:55:11 jmlarsen 00063 * Changed interface of uves_frameset to optionally write image statistics kewwords 00064 * 00065 * Revision 1.29 2006/08/24 11:36:37 jmlarsen 00066 * Write recipe start/stop time to header 00067 * 00068 * Revision 1.28 2006/08/18 13:35:42 jmlarsen 00069 * Fixed/changed QC parameter formats 00070 * 00071 * Revision 1.27 2006/08/11 14:56:05 amodigli 00072 * removed Doxygen warnings 00073 * 00074 * Revision 1.26 2006/08/07 11:35:35 jmlarsen 00075 * Disabled parameter environment variable mode 00076 * 00077 * Revision 1.25 2006/07/14 12:19:28 jmlarsen 00078 * Support multiple QC tests per product 00079 * 00080 * Revision 1.24 2006/07/03 14:20:39 jmlarsen 00081 * Exclude bad pixels from order tracing 00082 * 00083 * Revision 1.23 2006/07/03 13:09:24 amodigli 00084 * adjusted description display layout 00085 * 00086 * Revision 1.22 2006/07/03 12:46:34 amodigli 00087 * updated description 00088 * 00089 * Revision 1.21 2006/06/22 12:13:10 amodigli 00090 * removed ESO prefix 00091 * 00092 * Revision 1.20 2006/06/22 06:44:06 amodigli 00093 * added some QC param 00094 * 00095 * Revision 1.19 2006/06/16 08:25:34 jmlarsen 00096 * Do the order tracing on non-median filtered frame 00097 * 00098 * Revision 1.18 2006/06/13 11:57:02 jmlarsen 00099 * Check that calibration frames are from the same chip ID 00100 * 00101 * Revision 1.17 2006/06/08 11:40:50 amodigli 00102 * added check to have output order table as input guess, if provided 00103 * 00104 * Revision 1.16 2006/06/08 08:42:53 jmlarsen 00105 * Added support for computing Hough transform on image subwindow 00106 * 00107 * Revision 1.15 2006/06/07 13:06:28 jmlarsen 00108 * Changed doxygen tag addtogroup -> defgroup 00109 * 00110 * Revision 1.14 2006/06/07 09:01:28 amodigli 00111 * added some doc 00112 * 00113 * Revision 1.13 2006/06/06 08:40:10 jmlarsen 00114 * Shortened max line length 00115 * 00116 * Revision 1.12 2006/05/09 15:42:00 amodigli 00117 * added QC log 00118 * 00119 * Revision 1.11 2006/05/08 15:41:32 amodigli 00120 * added order table chopping (commented out) 00121 * 00122 * Revision 1.10 2006/05/05 13:55:17 jmlarsen 00123 * Minor doc update 00124 * 00125 * Revision 1.9 2006/04/20 10:47:39 amodigli 00126 * added qclog 00127 * 00128 * Revision 1.8 2006/04/06 09:48:15 amodigli 00129 * changed uves_frameset_insert interface to have QC log 00130 * 00131 * Revision 1.7 2006/04/06 08:46:40 jmlarsen 00132 * Changed default polynomial degrees to auto 00133 * 00134 * Revision 1.6 2006/03/24 14:04:14 jmlarsen 00135 * Changed background subtraction sample density default parameter value 00136 * 00137 * Revision 1.5 2006/03/09 10:53:41 jmlarsen 00138 * Changed default bivariate degrees to MIDAS values 00139 * 00140 * Revision 1.4 2006/03/03 13:54:11 jmlarsen 00141 * Changed syntax of check macro 00142 * 00143 * Revision 1.3 2006/02/28 09:15:22 jmlarsen 00144 * Minor update 00145 * 00146 * Revision 1.2 2006/02/21 14:26:54 jmlarsen 00147 * Minor changes 00148 * 00149 * Revision 1.1 2006/02/03 07:46:30 jmlarsen 00150 * Moved recipe implementations to ./uves directory 00151 * 00152 * Revision 1.63 2006/01/19 08:47:24 jmlarsen 00153 * Inserted missing doxygen end tag 00154 * 00155 * Revision 1.62 2006/01/05 14:31:31 jmlarsen 00156 * Checking for guess DRS table before guess order table 00157 * 00158 * Revision 1.61 2005/12/20 16:10:32 jmlarsen 00159 * Added some documentation 00160 * 00161 * Revision 1.60 2005/12/19 16:17:55 jmlarsen 00162 * Replaced bool -> int 00163 * 00164 */ 00165 #ifdef HAVE_CONFIG_H 00166 # include <config.h> 00167 #endif 00168 00169 /*----------------------------------------------------------------------------*/ 00175 /*----------------------------------------------------------------------------*/ 00176 00177 /*----------------------------------------------------------------------------- 00178 Includes 00179 -----------------------------------------------------------------------------*/ 00180 00181 #include <uves_reduce_scired.h> 00182 #include <uves_recipe.h> 00183 #include <uves_utils_wrappers.h> 00184 #include <uves.h> 00185 #include <uves_error.h> 00186 00187 #include <cpl.h> 00188 00189 /*----------------------------------------------------------------------------- 00190 Forward declarations 00191 -----------------------------------------------------------------------------*/ 00192 static int uves_obs_spatred_define_parameters(cpl_parameterlist *parameters); 00193 00194 /*----------------------------------------------------------------------------- 00195 Recipe standard code 00196 -----------------------------------------------------------------------------*/ 00197 #define cpl_plugin_get_info uves_obs_spatred_get_info 00198 UVES_RECIPE_DEFINE( 00199 UVES_SPATRED_ID, UVES_SPATRED_DOM, uves_obs_spatred_define_parameters, 00200 "Jonas M. Larsen", "cpl@eso.org", 00201 uves_scired_desc_short, 00202 uves_scired_desc); 00203 00204 /*----------------------------------------------------------------------------- 00205 Functions code 00206 -----------------------------------------------------------------------------*/ 00208 /*----------------------------------------------------------------------------*/ 00214 /*----------------------------------------------------------------------------*/ 00215 static int 00216 uves_obs_spatred_define_parameters(cpl_parameterlist *parameters) 00217 { 00218 int status = uves_scired_define_parameters_body(parameters, make_str(UVES_SPATRED_ID)); 00219 00220 if (status != 0) 00221 { 00222 return status; 00223 } 00224 00225 { 00226 const char *param = "2d"; 00227 00228 if (uves_set_parameter_default(parameters, 00229 make_str(UVES_SPATRED_ID), 00230 "reduce.extract.method", 00231 CPL_TYPE_STRING, ¶m) != CPL_ERROR_NONE) 00232 { 00233 return -1; 00234 } 00235 } 00236 00237 return 0; 00238 } 00239 00240 /*----------------------------------------------------------------------------*/ 00248 /*----------------------------------------------------------------------------*/ 00249 static void 00250 UVES_CONCAT2X(UVES_SPATRED_ID,exe)(cpl_frameset *frames, 00251 const cpl_parameterlist *parameters, 00252 const char *starttime) 00253 { 00254 uves_reduce_scired(frames, parameters, make_str(UVES_SPATRED_ID), 00255 starttime ); 00256 return; 00257 }
1.5.1