GRAVI Pipeline Reference Manual 1.9.3
Loading...
Searching...
No Matches
gravi_ellipse.h
Go to the documentation of this file.
1/* $Id: gravi_ellipse.c,v 1.10 2011/05/31 06:10:40 nazouaoui Exp $
2 *
3 * This file is part of the GRAVI 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21#ifndef GRAVI_ELLIPSE_H
22#define GRAVI_ELLIPSE_H
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27
28#include <cpl.h>
29
30/*-----------------------------------------------------------------------------
31 Macros
32 -----------------------------------------------------------------------------*/
33
34/* Use linear ellipse fitting or lmvq fit */
35#define USE_LINEAR_ELLIPSE 1
36
37/*-----------------------------------------------------------------------------
38 Public prototypes
39 -----------------------------------------------------------------------------*/
40
41cpl_vector * gravi_ellipse_phase_create (cpl_vector * vectCA,
42 cpl_vector * vectDB,
43 cpl_vector * envelope_vector);
44
45cpl_vector * gravi_ellipse_phase_create_fast (cpl_vector * vectCA,
46 cpl_vector * vectDB);
47
48cpl_vector * gravi_ellipse_meanopd_create (cpl_table * spectrum_table,
49 cpl_table * detector_table,
50 cpl_table ** oiwave_tables,
51 cpl_vector * guess_vector,
52 int base);
53
54#endif
cpl_vector * gravi_ellipse_meanopd_create(cpl_table *spectrum_table, cpl_table *detector_table, cpl_table **oiwave_tables, cpl_vector *guess_vector, int base)
Compute the OPD modulation of a baseline from spectrum.
cpl_vector * gravi_ellipse_phase_create(cpl_vector *vectCA, cpl_vector *vectDB, cpl_vector *envelope_vector)
Compute the phase atan{X',Y'}, unwraped from first sample.
cpl_vector * gravi_ellipse_phase_create_fast(cpl_vector *vectCA, cpl_vector *vectDB)