X-shooter Pipeline Reference Manual 3.8.15
xsh_efficiency_response.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/*
22 * $Author: amodigli $
23 * $Date: 2013-03-07 16:53:21 $
24 * $Revision: 1.7 $
25 */
26#ifndef XSH_EFFICIENCY_RESPONSE_H_
27#define XSH_EFFICIENCY_RESPONSE_H_
28#include <xsh_data_instrument.h>
29static const double STAR_MATCH_DEPSILON=0.0166667; /*60 arcsecs */
30
31/* Definition of the regions with a too high absorption; in these regions
32 the response is computed by a simple linear interpolation between the
33 valuse at the edges of the region
34*/
35typedef struct {
36 double lambda_min ;
37 double lambda_max ;
39
43 cpl_frame* high_abs_frame);
44
48 cpl_frame* high_abs_frame);
49
53 cpl_frame* high_abs_frame);
54
55
56
57
58double *
59xsh_bspline_fit_data(double* lambda, double* flux,const int size,
60 HIGH_ABS_REGION * phigh,xsh_instrument* inst,const int fit_region);
61
62double *
63xsh_bspline_fit_data2(double* lambda, double* flux,const int size,
64 HIGH_ABS_REGION * phigh,xsh_instrument* inst,const int fit_region);
65double *
66xsh_bspline_interpolate_data_at_pos(double* wave, double* flux,const int size,
67 double* pos, const int size_pos);
68
69#endif
static xsh_instrument * instrument
int size
static const double STAR_MATCH_DEPSILON
HIGH_ABS_REGION * xsh_fill_high_abs_regions(xsh_instrument *instrument, cpl_frame *high_abs_frame)
double * xsh_bspline_fit_data2(double *lambda, double *flux, const int size, HIGH_ABS_REGION *phigh, xsh_instrument *inst, const int fit_region)
double * xsh_bspline_interpolate_data_at_pos(double *wave, double *flux, const int size, double *pos, const int size_pos)
double * xsh_bspline_fit_data(double *lambda, double *flux, const int size, HIGH_ABS_REGION *phigh, xsh_instrument *inst, const int fit_region)
HIGH_ABS_REGION * xsh_fill_tell_compute_resid_regions(xsh_instrument *instrument, cpl_frame *high_abs_frame)
HIGH_ABS_REGION * xsh_fill_tell_fit_regions(xsh_instrument *instrument, cpl_frame *high_abs_frame)