ERIS Pipeline Reference Manual 1.8.15
sc_modsky.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
19
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41/*****************************************************************************
42 * INCLUDES *
43 ****************************************************************************/
44
45/* Config header */
46
47#ifdef HAVE_CONFIG_H
48#include <config.h>
49#endif
50
51/* Sky correction headers */
52
53#include <sc_basic.h>
54
55/*****************************************************************************
56 * DEFINES *
57 ****************************************************************************/
58
59#ifndef SC_MODSKY_H
60#define SC_MODSKY_H
61
62/* Definition of constants */
63
66#define SC_RELMAXERR 10.
67
68/*****************************************************************************
69 * PROTOTYPES *
70 ****************************************************************************/
71
72/* Declaration of functions */
73
74cpl_error_code sc_modsky(cpl_table *scispec, cpl_table *skyspec,
75 cpl_table *fitpar, const cpl_vector *sinc,
76 const cpl_parameterlist *parlist);
77cpl_error_code sc_modsky_modlines(cpl_table *skyspec, cpl_table *fitpar,
78 const char grouptype);
79cpl_error_code sc_modsky_moderrors(cpl_table *skyspec);
80cpl_error_code sc_modsky_modwavegrid(cpl_table *skyspec, cpl_table *fitpar);
81cpl_error_code sc_modsky_rebin(cpl_table *scispec, cpl_table *skyspec,
82 const cpl_vector *sinc,
83 const cpl_parameterlist *parlist);
84cpl_error_code sc_modsky_getpixelshifts(cpl_table *skyspec,
85 const cpl_table *scispec);
86cpl_error_code sc_modsky_sincrebin(cpl_table *scispec, const char *scicol,
87 const cpl_table *skyspec,
88 const char *skycol,
89 const cpl_vector *sinc);
90cpl_error_code sc_modsky_calcsinckernel(cpl_array *kernel,
91 const double shift);
92cpl_error_code sc_modsky_calcdev(cpl_table *scispec);
93
94#endif /* SC_MODSKY_H */
95
96#ifdef __cplusplus
97}
98#endif
99
cpl_error_code sc_modsky_moderrors(cpl_table *skyspec)
Definition: sc_modsky.c:246
cpl_error_code sc_modsky_rebin(cpl_table *scispec, cpl_table *skyspec, const cpl_vector *sinc, const cpl_parameterlist *parlist)
Definition: sc_modsky.c:436
cpl_error_code sc_modsky_modlines(cpl_table *skyspec, cpl_table *fitpar, const char grouptype)
Definition: sc_modsky.c:122
cpl_error_code sc_modsky(cpl_table *scispec, cpl_table *skyspec, cpl_table *fitpar, const cpl_vector *sinc, const cpl_parameterlist *parlist)
Definition: sc_modsky.c:53
cpl_error_code sc_modsky_calcdev(cpl_table *scispec)
Definition: sc_modsky.c:781
cpl_error_code sc_modsky_getpixelshifts(cpl_table *skyspec, const cpl_table *scispec)
Definition: sc_modsky.c:579
cpl_error_code sc_modsky_modwavegrid(cpl_table *skyspec, cpl_table *fitpar)
Definition: sc_modsky.c:296
cpl_error_code sc_modsky_sincrebin(cpl_table *scispec, const char *scicol, const cpl_table *skyspec, const char *skycol, const cpl_vector *sinc)
Definition: sc_modsky.c:640