CR2RE Pipeline Reference Manual 1.6.10
cr2res_splice.h
1/*
2 * This file is part of the CR2RES Pipeline
3 * Copyright (C) 2002,2003 European Southern Observatory
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18 */
19
20#ifndef CR2RES_SPLICE_H
21#define CR2RES_SPLICE_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26
27#include <cpl.h>
28#include <hdrl.h>
29
30/*-----------------------------------------------------------------------------
31 Define
32 -----------------------------------------------------------------------------*/
33
34/*-----------------------------------------------------------------------------
35 Prototypes
36 -----------------------------------------------------------------------------*/
37
38int cr2res_splice(
39 cpl_table ** extracted_1d,
40 cpl_table ** blaze,
41 cpl_table ** trace_wave,
42 int ninputs,
43 cpl_bivector ** spliced,
44 cpl_bivector ** spliced_err) ;
45
46int cr2res_splice_orders(
47 cpl_vector ** wave,
48 cpl_vector ** spec,
49 cpl_vector ** uncs,
50 cpl_vector ** cont,
51 int nspectra,
52 cpl_bivector ** spliced[],
53 cpl_bivector ** spliced_err[],
54 cpl_vector ** spectrum_order,
55 cpl_bivector ** first,
56 cpl_bivector ** last);
57
58cpl_table * cr2res_splice_SPLICED_1D_create(
59 cpl_bivector * spectrum,
60 cpl_bivector * spectrum_error) ;
61
62#endif