MOONS Pipeline Reference Manual 0.13.2
moo_molecfit.h
1/*
2 * This file is part of the MOONS Pipeline
3 * Copyright (C) 2002-2016 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#ifndef MOO_MOLECFIT_H
21#define MOO_MOLECFIT_H
22
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27#include <cpl.h>
28#include <hdrl.h>
29#include "moo_params.h"
30#include "moo_detector.h"
31#include "moo_sci.h"
32#include "moo_molectable.h"
33#include "moo_telluric.h"
34
35#define MOO_DEBUG_MOLECFIT_MODEL 0
36#define MOO_DEBUG_MOLECFIT_CALCTRANS 0
37
38#define MOO_MOLECFIT__WAVE "WAVE"
39/*-----------------------------------------------------------------------------
40 Functions prototypes
41 -----------------------------------------------------------------------------*/
42moo_molectable *
43moo_molecfit_model(const cpl_frame *sci,
44 const char *modename,
45 const cpl_frame *molecules,
46 const cpl_frame *winclude,
47 moo_molectable **mt_atm_fitted,
48 moo_molectable **mt_best_fitted_model,
49 moo_molecfit_model_params *molecfit_model_params);
50
51moo_telluric *moo_molecfit_calctrans(const cpl_frame *science,
52 const char *modename,
53 const cpl_frame *molecules,
54 const cpl_frame *atm,
55 const cpl_frame *best_fit,
56 const cpl_frame *kenrel_lib,
57 moo_molecfit_calctrans_params *params);
58#endif
moo_telluric * moo_molecfit_calctrans(const cpl_frame *science, const char *modename, const cpl_frame *molecules, const cpl_frame *atm, const cpl_frame *best_fit, const cpl_frame *kenrel_lib, moo_molecfit_calctrans_params *params)
Apply the molcecfit calctrans to the RBN to compute telle telluric correction.
moo_molectable * moo_molecfit_model(const cpl_frame *sci, const char *modename, const cpl_frame *molecules, const cpl_frame *winclude, moo_molectable **mt_atm_fitted, moo_molectable **mt_best_fitted_model, moo_molecfit_model_params *molecfit_model_params)
Apply the relative flux calibration to 1D rebinned spectra.