irplib_detmon_lg.h

00001 /* $Id: irplib_detmon_lg.h,v 1.4 2007/11/12 17:33:52 lbilbao Exp $
00002  *
00003  * This file is part of the irplib package
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: lbilbao $
00023  * $Date: 2007/11/12 17:33:52 $
00024  * $Revision: 1.4 $
00025  * $Name: uves-3_4_5 $
00026  */
00027 
00028 #ifndef IRPLIB_DETMON_LG_H
00029 #define IRPLIB_DETMON_LG_H
00030 
00031 /*----------------------------------------------------------------------------
00032                                    Includes
00033  ----------------------------------------------------------------------------*/
00034 
00035 #include <cpl.h>
00036 
00037 /*----------------------------------------------------------------------------
00038                                    Prototypes
00039  ----------------------------------------------------------------------------*/
00040 
00041 
00042 /* Macros to generate the recipe(s) description(s) */
00043 #define irplib_detmon_lg_get_description(RECIPE_NAME, PIPE_NAME,               \
00044                                          DETMON_IR_LG_ON_RAW,                  \
00045                                          DETMON_IR_LG_OFF_RAW)                 \
00046     RECIPE_NAME " -- " PIPE_NAME " linearity/gain recipe for IR.\n"            \
00047     "The files listed in the Set Of Frames must be tagged:\n"                  \
00048     "the raw-on-file.fits  "DETMON_IR_LG_ON_RAW"  and\n"                       \
00049     "the raw-off-file.fits "DETMON_IR_LG_OFF_RAW"\n" 
00050 
00051 #define REGEXP "ARCFILE|MJD-OBS|ESO TPL ID|DATE-OBS|ESO DET DIT|ESO DET NDIT"
00052 
00053 cpl_error_code
00054 irplib_detmon_lg(cpl_frameset            *,
00055          const cpl_parameterlist *,
00056          const char              *,
00057          const char              *,
00058          const char              *,
00059          const char              *,
00060          const char              *,
00061          const char              *, 
00062          const char              *, 
00063          const char              *, 
00064          const char              *, 
00065          const char              *, 
00066          const char              *, 
00067          const char              *,
00068          int                    (*)(const cpl_frame *,
00069                         const cpl_frame *),
00070          int                    (* load_fset) (const cpl_frameset *,
00071                                cpl_type,
00072                                                cpl_imagelist *),
00073          const cpl_boolean        );
00074 
00075 cpl_image * irplib_detmon_image_correlate(const cpl_image       *,
00076                                           const cpl_image       *,
00077                                           const int              ,
00078                                           const int              );
00079 
00080 int irplib_detmon_fill_params_default(cpl_parameterlist *,
00081                               const char        *,
00082                               const char        *);
00083 
00084 int
00085 irplib_detmon_fill_params(cpl_parameterlist * parlist,
00086                           const char *recipe_name, const char *pipeline_name,
00087               const char *method,
00088                           int order,
00089                           int kappa,
00090                           int niter,
00091                           int threshold_min,
00092                           int threshold_max,
00093                           int llx,
00094                           int lly,
00095                           int urx,
00096                           int ury,
00097                           int ref_level,
00098                           int threshold,
00099                           const char * intermediate,
00100                           const char * autocorr,
00101                           const char * collapse,
00102                           const char * rescale,
00103                           int filter,
00104                           int m,
00105                           int n,
00106                           int llx1,
00107                           int lly1,
00108                           int urx1,
00109                           int ury1,
00110                           int llx2,
00111                           int lly2,
00112                           int urx2,
00113                           int ury2,
00114                           int llx3,
00115                           int lly3,
00116                           int urx3,
00117                           int ury3,
00118                           int llx4,
00119                           int lly4,
00120                           int urx4,
00121                           int ury4,
00122                           int llx5,
00123                           int lly5,
00124                           int urx5,
00125                           int ury5,
00126                           int exts);                      
00127 
00128 cpl_image *
00129 irplib_detmon_autocorrelate(const cpl_image *,
00130                             const int, const int);
00131 
00132 #endif

Generated on Thu Nov 15 14:32:26 2007 for UVES Pipeline Reference Manual by  doxygen 1.5.1