naco_spc.h

00001 /* $Id: naco_spc.h,v 1.23 2008/09/12 09:17:51 llundin Exp $
00002  *
00003  * This file is part of the NACO 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: llundin $
00023  * $Date: 2008/09/12 09:17:51 $
00024  * $Revision: 1.23 $
00025  * $Name: naco-4_3_0 $
00026  */
00027 
00028 #ifndef NACO_SPC_H
00029 #define NACO_SPC_H
00030 
00031 /*-----------------------------------------------------------------------------
00032                                    Includes
00033  -----------------------------------------------------------------------------*/
00034 
00035 #include <cpl.h>
00036 #include <irplib_framelist.h>
00037 
00038 #include "naco_pfits.h"
00039 
00040 
00041 /*-----------------------------------------------------------------------------
00042                                    Define
00043  -----------------------------------------------------------------------------*/
00044 
00045 #define NACO_SPC_MODEL_COEFFS       4
00046 /* The number of columns is 5 + NACO_SPC_MODEL_COEFFS */
00047 #define NACO_SPC_MODEL_COLS         9
00048 
00049 #define NACO_SPC_LAB_MODE           "SpecMode"
00050 #define NACO_SPC_LAB_RESID          "Residual"
00051 #define NACO_SPC_LAB_ORDER          "Fit_Order"
00052 #define NACO_SPC_LAB_XMIN           "XMin"
00053 #define NACO_SPC_LAB_XMAX           "XMax"
00054 #define NACO_SPC_LAB_C1             "C_1"
00055 #define NACO_SPC_LAB_C2             "C_2"
00056 #define NACO_SPC_LAB_C3             "C_3"
00057 #define NACO_SPC_LAB_C4             "C_4"
00058 
00059 #define NACO_SPC_LAB_WAVE           "WAVELENGTH"
00060 #define NACO_SPC_LAB_INTENS         "INTENSITY"
00061 
00062 #define NACO_SPC_MAN_MODESPLIT                                          \
00063     "The input frames are split into groups with identical values of '" \
00064     NACO_PFITS_DOUBLE_DIT      "', '"                                   \
00065     NACO_PFITS_STRING_SLITNAME "', '"                                   \
00066     NACO_PFITS_DOUBLE_CWLEN    "' and '"                                \
00067     NACO_PFITS_STRING_SPECMODE "'."
00068 
00069 /*-----------------------------------------------------------------------------
00070                                    Function Prototypes
00071  -----------------------------------------------------------------------------*/
00072 
00073 char * naco_spc_make_tag(const cpl_frame*, const cpl_propertylist *, int);
00074 
00075 cpl_error_code naco_imagelist_load_diff(cpl_imagelist *,
00076                                         const irplib_framelist *,
00077                                         const cpl_propertylist *);
00078 
00079 cpl_error_code naco_imagelist_split(cpl_imagelist *);
00080 
00081 cpl_error_code naco_imagelist_add_split(cpl_imagelist *);
00082 
00083 cpl_error_code naco_imagelist_append_invert(cpl_imagelist *);
00084 
00085 cpl_error_code naco_vector_correlate_imagelist_1d(cpl_vector *,
00086                                                   const cpl_vector *,
00087                                                   cpl_boolean,
00088                                                   const cpl_imagelist *);
00089 #endif

Generated on Mon Feb 6 14:42:07 2012 for NACO Pipeline Reference Manual by  doxygen 1.5.8