GIRAFFE Pipeline Reference Manual

gifxcalibration.h
1 /*
2  * This file is part of the GIRAFFE Pipeline
3  * Copyright (C) 2002-2019 European Southern Observatory
4  *
5  * This program 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, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef GIFXCALIBRATION_H
21 #define GIFXCALIBRATION_H
22 
23 
24 #include <cpl_parameterlist.h>
25 
26 #include <giimage.h>
27 #include <gitable.h>
28 #include <girebinning.h>
29 #include <giresponse.h>
30 
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36  struct GiFxCalibrationConfig {
37  cxbool sky_subtraction;
38  cxdouble max_dist;
39  };
40 
41  typedef struct GiFxCalibrationConfig GiFxCalibrationConfig;
42 
43 
44  GiFxCalibrationConfig*
45  giraffe_fxcalibration_config_create(cpl_parameterlist* parameters);
46  void giraffe_fxcalibration_config_destroy(GiFxCalibrationConfig* self);
47 
48  void giraffe_fxcalibration_config_add(cpl_parameterlist* parameters);
49 
50 
51  GiTable* giraffe_select_flux_standard(const GiTable* catalog,
52  const GiImage* spectra,
53  cxdouble max_dist);
54 
55  cxint giraffe_calibrate_flux(GiResponse* result,
56  const GiRebinning* spectra,
57  const GiTable* fibers,
58  const GiImage* flat,
59  const GiTable* flux,
60  const GiTable* extinction,
61  const GiFxCalibrationConfig* config);
62 
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif /* GIFXCALIBRATION_H */
void giraffe_fxcalibration_config_add(cpl_parameterlist *parameters)
Add flux calibration parameters to a parameter list.
cxint giraffe_calibrate_flux(GiResponse *result, const GiRebinning *spectra, const GiTable *fibers, const GiImage *flat, const GiTable *flux, const GiTable *extinction, const GiFxCalibrationConfig *config)
Compute the response and efficiency curves.
void giraffe_fxcalibration_config_destroy(GiFxCalibrationConfig *self)
Destroy a flux calibration setup structure.

This file is part of the GIRAFFE Pipeline Reference Manual 2.16.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Dec 15 2022 21:18:51 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2004