ERIS Pipeline Reference Manual 1.8.15
eris_ifu_skycorr.h
1/* $Id$
2 *
3 * This file is part of the ERIS Pipeline
4 * Copyright (C) 2002,2003 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#ifndef ERISP_ERIS_ERIS_SKYCORR_H_
22#define ERISP_ERIS_ERIS_SKYCORR_H_
23
24#ifdef HAVE_CONFIG_H
25#include <config.h>
26#endif
27
28/*-----------------------------------------------------------------------------
29 Includes
30 -----------------------------------------------------------------------------*/
31
32#include <cpl.h>
33#include <hdrl.h>
34
35#include "eris_ifu_jitter_interface.h"
36
37/*-----------------------------------------------------------------------------
38 Define
39 -----------------------------------------------------------------------------*/
40
41
42
43cpl_table* eris_ifu_skycorr_extract_spectrum(const hdrl_imagelist *cube,
44 const cpl_propertylist *header,
45 cpl_size x,
46 cpl_size y);
47
48cpl_table* eris_ifu_skycorr_create_nan_spectrum(const hdrl_imagelist *cube);
49
50cpl_error_code eris_ifu_skycorr_insert_spectrum(hdrl_imagelist *cube,
51 cpl_table *scspec,
52 cpl_size x,
53 cpl_size y);
54
55
56cpl_error_code eris_ifu_skycorr_flatten_outliers(cpl_table *objspec,
57 cpl_table *skyspec,
58 int f);
59
60cpl_error_code eris_ifu_skycorr_flatten_outliers2(cpl_table *objspec,
61 cpl_table *skyspec,
62 double min_frac);
63
64cpl_parameterlist* eris_ifu_skycorr_create_parlist(const cpl_propertylist *sky_header);
65
66#endif // ERIS_SKYCORR_H