ERIS Pipeline Reference Manual 1.9.2
sc_weights.h
Go to the documentation of this file.
1/*
2 * This file is part of the SKYCORR software package.
3 * Copyright (C) 2009-2013 European Southern Observatory
4 *
5 * This programme 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 programme 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 programme. If not, see <http://www.gnu.org/licenses/>.
17 */
18
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40/*****************************************************************************
41 * INCLUDES *
42 ****************************************************************************/
43
44/* Config header */
45
46#ifdef HAVE_CONFIG_H
47#include <config.h>
48#endif
49
50/* Sky correction headers */
51
52#include <sc_basic.h>
53
54/*****************************************************************************
55 * DEFINES *
56 ****************************************************************************/
57
58#ifndef SC_WEIGHTS_H
59#define SC_WEIGHTS_H
60
61/* Definition of constants */
62
64#define SC_COLDEPTH 10
67#define SC_EXTRACOVER 5
69#define SC_SAMPFAC 5.
72#define SC_LIMRELLAMVAR 0.01
74#define SC_BINS_PER_FWHM 200.
76#define SC_KERNFAC 3.
77
78/*****************************************************************************
79 * PROTOTYPES *
80 ****************************************************************************/
81
82/* Declaration of functions */
83
84cpl_error_code sc_weights(cpl_table *skyspec, cpl_table *fitpar,
85 cpl_table *groups, cpl_parameterlist *parlist);
86cpl_error_code sc_weights_initfitpar(cpl_table *fitpar,
87 cpl_parameterlist *parlist,
88 const cpl_table *groups);
89cpl_error_code sc_weights_getpixcontrib(cpl_table *skyspec, cpl_table *fitpar,
90 cpl_table *groups,
91 const cpl_parameterlist *parlist);
92cpl_error_code sc_weights_createwavegrid(cpl_table *groupspec,
93 const cpl_table *skyspec);
94cpl_error_code sc_weights_getgrouplines(cpl_table *groupspec,
95 cpl_table *fitpar, cpl_table *groups,
96 const cpl_parameterlist *parlist,
97 const char grouptype,
98 const int group);
99cpl_error_code sc_weights_convolve(cpl_table *groupspec, const double fwhm,
100 const double reflam,
101 const double speedpar);
102cpl_error_code sc_weights_calckernel(cpl_array *kernel, const double fwhm);
103cpl_error_code sc_weights_rebinspec(cpl_table *skyspec,
104 const cpl_table *groupspec);
105cpl_error_code sc_weights_fillgrouparrays(cpl_table *skyspec,
106 const char grouptype,
107 const int group);
108cpl_error_code sc_weights_normpixcontrib(cpl_table *skyspec,
109 const char grouptype);
110cpl_error_code sc_weights_getdomgroups(cpl_table *skyspec,
111 const cpl_parameterlist *parlist,
112 const char grouptype);
113
114#endif /* SC_WEIGHTS_H */
115
116#ifdef __cplusplus
117}
118#endif
119
cpl_error_code sc_weights_fillgrouparrays(cpl_table *skyspec, const char grouptype, const int group)
Definition: sc_weights.c:936
cpl_error_code sc_weights_createwavegrid(cpl_table *groupspec, const cpl_table *skyspec)
Definition: sc_weights.c:416
cpl_error_code sc_weights_calckernel(cpl_array *kernel, const double fwhm)
Definition: sc_weights.c:755
cpl_error_code sc_weights_normpixcontrib(cpl_table *skyspec, const char grouptype)
Definition: sc_weights.c:1027
cpl_error_code sc_weights(cpl_table *skyspec, cpl_table *fitpar, cpl_table *groups, cpl_parameterlist *parlist)
Definition: sc_weights.c:49
cpl_error_code sc_weights_getgrouplines(cpl_table *groupspec, cpl_table *fitpar, cpl_table *groups, const cpl_parameterlist *parlist, const char grouptype, const int group)
Definition: sc_weights.c:528
cpl_error_code sc_weights_getpixcontrib(cpl_table *skyspec, cpl_table *fitpar, cpl_table *groups, const cpl_parameterlist *parlist)
Definition: sc_weights.c:253
cpl_error_code sc_weights_rebinspec(cpl_table *skyspec, const cpl_table *groupspec)
Definition: sc_weights.c:871
cpl_error_code sc_weights_getdomgroups(cpl_table *skyspec, const cpl_parameterlist *parlist, const char grouptype)
Definition: sc_weights.c:1089
cpl_error_code sc_weights_initfitpar(cpl_table *fitpar, cpl_parameterlist *parlist, const cpl_table *groups)
Definition: sc_weights.c:88
cpl_error_code sc_weights_convolve(cpl_table *groupspec, const double fwhm, const double reflam, const double speedpar)
Definition: sc_weights.c:620