CR2RE Pipeline Reference Manual 1.6.8
cr2res_etalon.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_ETALON_H
21#define CR2RES_ETALON_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26
27#include <cpl.h>
28
29/*-----------------------------------------------------------------------------
30 Prototypes
31 -----------------------------------------------------------------------------*/
32
33#ifdef CR2RES_UNUSED
34cpl_image * cr2res_etalon_computation(const cpl_image * in) ;
35cpl_vector * cr2res_etalon_get_maxpos(const cpl_vector *) ;
36#endif
37cpl_vector * cr2res_etalon_find_peaks(
38 const cpl_vector * in,
39 double height,
40 double distance);
41cpl_polynomial * cr2res_etalon_wave_2d(
42 cpl_bivector ** spectra,
43 cpl_bivector ** spectra_err,
44 cpl_polynomial ** wavesol_init,
45 cpl_array ** wavesol_init_err,
46 int * orders,
47 int * traces_nb,
48 int ninputs,
49 cpl_size degree_x,
50 cpl_size degree_y,
51 int zp_order,
52 int display,
53 cpl_array ** wavelength_error,
54 cpl_table ** line_diagnostics);
55#endif
cpl_polynomial * cr2res_etalon_wave_2d(cpl_bivector **spectra, cpl_bivector **spectra_err, cpl_polynomial **wavesol_init, cpl_array **wavesol_init_err, int *orders, int *traces_nb, int ninputs, cpl_size degree_x, cpl_size degree_y, int zp_order, int display, cpl_array **wavelength_error, cpl_table **line_diagnostics)
Create the 2d wavecal fit using etalon peaks.
cpl_vector * cr2res_etalon_find_peaks(const cpl_vector *in, double height, double distance)
Detect peaks from a 1d periodic signal and store their positions.