ERIS Pipeline Reference Manual 1.9.2
sc_specdiss.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
34/*****************************************************************************
35 * INCLUDES *
36 ****************************************************************************/
37
38/* Config header */
39
40#ifdef HAVE_CONFIG_H
41#include <config.h>
42#endif
43
44/* Sky correction headers */
45
46#include <sc_basic.h>
47#include <sc_contsub.h>
48
49/*****************************************************************************
50 * DEFINES *
51 ****************************************************************************/
52
53#ifndef SC_SPECDISS_H
54#define SC_SPECDISS_H
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
60/*****************************************************************************
61 * TYPEDEF *
62 ****************************************************************************/
63
64/*****************************************************************************
65 * GLOBALS *
66 ****************************************************************************/
67
68/*****************************************************************************
69 * PROTOTYPES *
70 ****************************************************************************/
71
72/* Main routines */
73cpl_error_code sc_specdiss_find_emissionlines(cpl_table *input_spectrum,
74 cpl_table *linetab,
75 cpl_parameterlist *parlist,
76 const cpl_table *groups);
77cpl_error_code sc_specdiss_find_isolatedlines(cpl_table *linetab,
78 cpl_table *input_spectrum,
79 cpl_parameterlist *parlist);
80cpl_error_code sc_specdiss_merge_speclinelist(cpl_table *spec,
81 const cpl_table *groups,
82 const cpl_parameterlist *parlist);
83cpl_error_code sc_specdiss_identify_airglowlines(cpl_table *spec);
84
85
86/* Internal routines */
87cpl_error_code sc_specdiss_create_hist(cpl_table *hist,
88 const cpl_table *input_table,
89 char *col_name, const int n_bins);
90cpl_error_code sc_specdiss_find_valuesoutside(cpl_table *input_table,
91 char *newcolname,
92 char *colname,
93 const double lowlim,
94 const double uplim);
95cpl_error_code sc_specdiss_find_valuesabove(cpl_table *input_table,
96 char *newcolname,
97 char *colname,
98 const double lowlim);
99cpl_error_code sc_specdiss_find_localmaxima(cpl_table *input_table,
100 char *newcolname,
101 char *colname,
102 const double lower_threshold,
103 const double upper_threshold);
104int sc_specdiss_count_lines(const cpl_table *intable);
105void sc_specdiss_init_linetab(cpl_table *linetab);
106
107#endif /* SC_SPECDISS_H */
108
109#ifdef __cplusplus
110}
111#endif
112
cpl_error_code sc_specdiss_find_valuesoutside(cpl_table *input_table, char *newcolname, char *colname, const double lowlim, const double uplim)
Definition: sc_specdiss.c:802
void sc_specdiss_init_linetab(cpl_table *linetab)
Definition: sc_specdiss.c:974
int sc_specdiss_count_lines(const cpl_table *intable)
Definition: sc_specdiss.c:866
cpl_error_code sc_specdiss_find_emissionlines(cpl_table *input_spectrum, cpl_table *linetab, cpl_parameterlist *parlist, const cpl_table *groups)
Definition: sc_specdiss.c:59
cpl_error_code sc_specdiss_identify_airglowlines(cpl_table *spec)
Definition: sc_specdiss.c:1202
cpl_error_code sc_specdiss_merge_speclinelist(cpl_table *spec, const cpl_table *groups, const cpl_parameterlist *parlist)
Definition: sc_specdiss.c:1023
cpl_error_code sc_specdiss_create_hist(cpl_table *hist, const cpl_table *input_table, char *col_name, const int n_bins)
Definition: sc_specdiss.c:894
cpl_error_code sc_specdiss_find_valuesabove(cpl_table *input_table, char *newcolname, char *colname, const double lowlim)
Definition: sc_specdiss.c:1234
cpl_error_code sc_specdiss_find_isolatedlines(cpl_table *linetab, cpl_table *input_spectrum, cpl_parameterlist *parlist)
Definition: sc_specdiss.c:346
cpl_error_code sc_specdiss_find_localmaxima(cpl_table *input_table, char *newcolname, char *colname, const double lower_threshold, const double upper_threshold)
Definition: sc_specdiss.c:634