X-shooter Pipeline Reference Manual 3.8.15
xsh_data_star_flux.h
Go to the documentation of this file.
1/* *
2 * This file is part of the ESO X-shooter Pipeline *
3 * Copyright (C) 2006 European Southern Observatory *
4 * *
5 * This library 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 program 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 program; if not, write to the Free Software *
17 * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA *
18 * */
19
20/*
21 * $Author: amodigli $
22 * $Date: 2013-03-13 09:31:15 $
23 * $Revision: 1.11 $
24 */
25
26#if !defined(XSH_DATA_STAR_FLUX_H)
27#define XSH_DATA_STAR_FLUX_H
28
29
30#include <cpl.h>
31
32#define XSH_STAR_FLUX_LIST_COLNAME_WAVELENGTH "LAMBDA"
33#define XSH_STAR_FLUX_LIST_COLNAME_FLUX "FLUX"
34
35typedef struct {
36 int size ;
37 cpl_propertylist * header ;
38 double * lambda ;
39 double * flux ;
41
42
43cpl_error_code
45 int hsize );
46
47cpl_error_code
49 cpl_lowpass filter_type,
50 int hsize );
51
52xsh_star_flux_list * xsh_star_flux_list_load( cpl_frame * star_frame ) ;
54
58 const char * filename,
59 const char * tag ) ;
60cpl_frame *
62 const char * filename,
63 const char * tag,
64 const int order );
65
68cpl_error_code
69xsh_star_flux_list_dump_ascii( xsh_star_flux_list * list, const char* filename );
70cpl_error_code
73void xsh_star_flux_list_extrapolate_wave_end( xsh_star_flux_list * list , const double wmax);
74
75cpl_error_code
76xsh_star_flux_list_to_frame( xsh_star_flux_list* list, cpl_frame* frame);
77#endif
int size
cpl_propertylist * header
double * xsh_star_flux_list_get_lambda(xsh_star_flux_list *list)
cpl_error_code xsh_star_flux_list_filter_lowpass(xsh_star_flux_list *result, cpl_lowpass filter_type, int hsize)
cpl_error_code xsh_star_flux_list_divide(xsh_star_flux_list *result, xsh_star_flux_list *factor)
void xsh_star_flux_list_extrapolate_wave_end(xsh_star_flux_list *list, const double wmax)
cpl_frame * xsh_star_flux_list_save_order(xsh_star_flux_list *list, const char *filename, const char *tag, const int order)
cpl_error_code xsh_star_flux_list_to_frame(xsh_star_flux_list *list, cpl_frame *frame)
void xsh_star_flux_list_free(xsh_star_flux_list **list)
xsh_star_flux_list * xsh_star_flux_list_load_spectrum(cpl_frame *star_frame)
cpl_error_code xsh_star_flux_list_dump_ascii(xsh_star_flux_list *list, const char *filename)
xsh_star_flux_list * xsh_star_flux_list_load(cpl_frame *star_frame)
cpl_error_code xsh_star_flux_list_filter_median(xsh_star_flux_list *result, int hsize)
xsh_star_flux_list * xsh_star_flux_list_create(int size)
cpl_frame * xsh_star_flux_list_save(xsh_star_flux_list *list, const char *filename, const char *tag)
double * xsh_star_flux_list_get_flux(xsh_star_flux_list *list)
xsh_star_flux_list * xsh_star_flux_list_duplicate(xsh_star_flux_list *list)
int order
Definition: xsh_detmon_lg.c:80