CR2RE Pipeline Reference Manual 1.6.8
cr2res_pol.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_POL_H
21#define CR2RES_POL_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26
27#include <cpl.h>
28#include <hdrl.h>
29#include "cr2res_utils.h"
30
31
32/*-----------------------------------------------------------------------------
33 Define
34 -----------------------------------------------------------------------------*/
35
36#define CR2RES_POLARIMETRY_GROUP_SIZE 4
37#define CR2RES_POLARIMETRY_DEFAULT_HEIGHT 32
38
39/*-----------------------------------------------------------------------------
40 Prototypes
41 -----------------------------------------------------------------------------*/
42
43cpl_bivector * cr2res_pol_demod_stokes(
44 cpl_vector ** intens,
45 cpl_vector ** wl,
46 cpl_vector ** errors,
47 int n) ;
48cpl_bivector * cr2res_pol_demod_null(
49 cpl_vector ** intens,
50 cpl_vector ** wl,
51 cpl_vector ** errors,
52 int n) ;
53cpl_bivector * cr2res_pol_demod_intens(
54 cpl_vector ** intens,
55 cpl_vector ** wl,
56 cpl_vector ** errors,
57 int n) ;
59 int * orders,
60 cpl_vector ** wl,
61 cpl_bivector ** stokes,
62 cpl_bivector ** null,
63 cpl_bivector ** intens,
64 int norders) ;
66 const cpl_frame * frame1,
67 const cpl_frame * frame2,
68 const cpl_frame * frame3,
69 const cpl_frame * frame4) ;
70
72 const cpl_table ** pol_spec_list,
73 int pol_spec_nb) ;
74
76 const cpl_table *traces_in,
77 cr2res_decker decker_position,
78 int up_or_down);
79#endif
cpl_bivector * cr2res_pol_demod_intens(cpl_vector **intens, cpl_vector **wl, cpl_vector **errors, int n)
Combine extracted spectra into Intensity spectrum.
Definition: cr2res_pol.c:528
cpl_table * cr2res_pol_POL_SPEC_create(int *orders, cpl_vector **wl, cpl_bivector **stokes, cpl_bivector **null, cpl_bivector **intens, int norders)
Create the POL_SPEC table to be saved.
Definition: cr2res_pol.c:696
cpl_table * cr2res_pol_spec_pol_merge(const cpl_table **pol_spec_list, int pol_spec_nb)
Merge several POL_SPEC tables together, by averaging.
Definition: cr2res_pol.c:915
int * cr2res_pol_sort_frames(const cpl_frame *frame1, const cpl_frame *frame2, const cpl_frame *frame3, const cpl_frame *frame4)
Compute the positions of the passed frames.
Definition: cr2res_pol.c:833
cpl_table * cr2res_pol_get_beam_trace(const cpl_table *traces_in, cr2res_decker decker_position, int up_or_down)
Compute the traces for the polarimetric beams.
Definition: cr2res_pol.c:970
cpl_bivector * cr2res_pol_demod_stokes(cpl_vector **intens, cpl_vector **wl, cpl_vector **errors, int n)
Demodulate extracted spectra into Stokes parameter.
Definition: cr2res_pol.c:106
cpl_bivector * cr2res_pol_demod_null(cpl_vector **intens, cpl_vector **wl, cpl_vector **errors, int n)
Demodulate extracted spectra into Null spectrum.
Definition: cr2res_pol.c:410