VISIR Pipeline Reference Manual  4.1.0
visir_spectro.h
1 /* $Id: visir_spectro.h,v 1.70 2013-05-13 16:04:54 jtaylor Exp $
2  *
3  * This file is part of the VISIR Pipeline
4  * Copyright (C) 2002,2003 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: jtaylor $
23  * $Date: 2013-05-13 16:04:54 $
24  * $Revision: 1.70 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef VISIR_SPECTRO_H
29 #define VISIR_SPECTRO_H
30 
31 /*-----------------------------------------------------------------------------
32  Includes
33  -----------------------------------------------------------------------------*/
34 
35 #include <cpl.h>
36 
37 #include "irplib_framelist.h"
38 #include "visir_spc_optmod.h"
39 #include "visir_inputs.h"
40 
41 
42 typedef struct {
43  const char * recipename;
44  const cpl_parameterlist * parlist;
45  cpl_boolean do_fixcombi;
46 
47  /* Inputs */
48  int plot;
49  double phi;
50  double ksi;
51  double eps;
52  double delta;
53 
54  /* only non zero for echelle */
55  int orderoffset;
56 
57  /* photometry */
58  double phot_emis_tol;
60 
61 visir_spc_resol visir_spc_get_res_wl(const irplib_framelist *, double *,
62  double *, double *, double *, int);
63 
64 cpl_image * visir_spc_flip(const cpl_image *, double,
65  visir_spc_resol, visir_data_type);
66 
67 cpl_bivector * visir_bivector_load_fits(const char *, const char *,
68  const char *, int);
69 cpl_error_code visir_vector_resample(cpl_vector *, const cpl_vector *,
70  const cpl_bivector *);
71 cpl_error_code visir_spc_extract_wcal(const cpl_image *, const cpl_image *,
72  double, double, double, double,
73  visir_spc_resol, int,
74  const char*, const char *,
75  cpl_table **,
76  cpl_image **,
77  cpl_propertylist *, int, int, int);
78 
79 cpl_error_code visir_spc_wavecal(const cpl_image *,
80  cpl_propertylist *,
81  double, double, double,
82  double, visir_spc_resol, int, const char *,
83  const char *,
84  cpl_table **, int, int);
85 
86 cpl_error_code visir_spectro_qc(cpl_propertylist *, cpl_propertylist *,
87  cpl_boolean, const irplib_framelist *,
88  const char *, const char *);
89 
90 cpl_error_code visir_spc_echelle_limit(int *, int *, double, int, int, int, int);
91 cpl_image * visir_spc_column_extract(const cpl_image *, int, int, int);
92 
93 
94 cpl_error_code
95 visir_spc_extract_order(cpl_image ** order,
96  cpl_image ** comorder,
97  const cpl_image * combined,
98  const cpl_image * imhcycle,
99  const double wlen,
100  const visir_spc_config * pconfig,
101  const cpl_boolean do_ech,
102  int);
103 #endif