CRIRES Pipeline Reference Manual
2.3.2
|
00001 /* $Id: crires_recipe.h,v 1.9 2012-01-16 09:29:23 yjung Exp $ 00002 * 00003 * This file is part of the CRIRES Pipeline 00004 * Copyright (C) 2002,2003 European Southern Observatory 00005 * 00006 * This program 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., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA 00019 */ 00020 00021 /* 00022 * $Author: yjung $ 00023 * $Date: 2012-01-16 09:29:23 $ 00024 * $Revision: 1.9 $ 00025 * $Name: not supported by cvs2svn $ 00026 */ 00027 00028 /* cpp macros that must be defined before inclusion: 00029 00030 RECIPE_NAME: e.g. crires_spec_jitter 00031 RECIPE_STRING: e.g. "crires_spec_jitter" 00032 RECIPE_SYNOPSIS: String with the recipe synopsis 00033 RECIPE_DESCRIPTION: String with the recipe descrption 00034 Optionally: 00035 RECIPE_PARAMS: Binary or of parameter enums 00036 00037 */ 00038 00039 00040 #ifndef CRIRES_RECIPE_H 00041 #define CRIRES_RECIPE_H 00042 00043 /*----------------------------------------------------------------------------- 00044 Includes 00045 -----------------------------------------------------------------------------*/ 00046 00047 #include <math.h> 00048 #include <assert.h> 00049 #include <float.h> 00050 #include <string.h> 00051 00052 #include <cpl.h> 00053 00054 #include "irplib_plugin.h" 00055 00056 #include "crires_parameter.h" 00057 #include "crires_utils.h" 00058 #include "crires_load.h" 00059 #include "crires_pfits.h" 00060 #include "crires_dfs.h" 00061 00062 /*----------------------------------------------------------------------------- 00063 Defines 00064 -----------------------------------------------------------------------------*/ 00065 00066 #define crires_pipe_id PACKAGE "/" PACKAGE_VERSION 00067 00068 #define CRIRES_RECIPE_DEFINE(RECIPE_NAME, RECIPE_PARAMS, SYNOPSIS, DESCRIPTION) \ 00069 cpl_recipe_define(RECIPE_NAME, CRIRES_BINARY_VERSION, \ 00070 "Yves Jung", PACKAGE_BUGREPORT, "2002 - 2012", \ 00071 SYNOPSIS, DESCRIPTION); \ 00072 \ 00073 static cpl_error_code CPL_CONCAT2X(RECIPE_NAME,fill_parameterlist) \ 00074 (cpl_parameterlist * self) { \ 00075 return crires_parameter_set(self, #RECIPE_NAME, RECIPE_PARAMS) \ 00076 ? cpl_error_set_where(cpl_func) : CPL_ERROR_NONE; \ 00077 } \ 00078 extern int CPL_CONCAT2X(RECIPE_NAME,plugin_end) 00079 00080 #endif