ERIS Pipeline Reference Manual 1.8.15
sc_skycorr.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
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39/*****************************************************************************
40 * INCLUDES *
41 ****************************************************************************/
42
43/* Config header */
44
45#ifdef HAVE_CONFIG_H
46#include <config.h>
47#endif
48
49/* Sky correction headers */
50
51#include <sc_basic.h>
52#include <sc_par.h>
53#include <sc_readspec.h>
54#include <sc_lines.h>
55#include <sc_specdiss.h>
56#include <sc_contsub.h>
57#include <sc_fwhmest.h>
58#include <sc_weights.h>
59#include <sc_mpfit.h>
60
61/*****************************************************************************
62 * DEFINES *
63 ****************************************************************************/
64
65#ifndef SC_SKYCORR_H
66#define SC_SKYCORR_H
67
68/* Definition of constants */
69
72#define SC_GRIDTOL 1e-2
73
74/*****************************************************************************
75 * PROTOTYPES *
76 ****************************************************************************/
77
78/* Declaration of functions */
79
80cpl_error_code sc_skycorr(cpl_parameterlist *parlist,
81 cpl_table *scispec,
82 cpl_table *skyspec,
83 int product_depth);
84cpl_error_code sc_skycorr_subcont(cpl_table *spec, cpl_table *linetab,
85 cpl_parameterlist *parlist,
86 const cpl_table *groups);
87cpl_error_code sc_skycorr_fit(cpl_table *scispec, cpl_table *skyspec,
88 cpl_table *groups, cpl_parameterlist *parlist,
89 int product_depth);
90cpl_error_code sc_skycorr_subsky(cpl_table *scispec);
91
92#endif /* SC_SKYCORR_H */
93
94#ifdef __cplusplus
95}
96#endif
97
Header for routines for handling parameter files.
cpl_error_code sc_skycorr(cpl_parameterlist *parlist, cpl_table *scispec, cpl_table *skyspec, int product_depth)
Definition: sc_skycorr.c:48
cpl_error_code sc_skycorr_subcont(cpl_table *spec, cpl_table *linetab, cpl_parameterlist *parlist, const cpl_table *groups)
Definition: sc_skycorr.c:134
cpl_error_code sc_skycorr_fit(cpl_table *scispec, cpl_table *skyspec, cpl_table *groups, cpl_parameterlist *parlist, int product_depth)
Definition: sc_skycorr.c:330
cpl_error_code sc_skycorr_subsky(cpl_table *scispec)
Definition: sc_skycorr.c:450
Header for spectral analysis library.