MOONS Pipeline Reference Manual 0.13.1
moo_drl.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_DRL_H
21#define MOO_DRL_H
22
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27#include <cpl.h>
28#include <hdrl.h>
29#include "moo_params.h"
30#include "moo_single.h"
31#include "moo_det.h"
32#include "moo_detlist.h"
33#include "moo_masklist.h"
34#include "moo_ext.h"
35#include "moo_psf.h"
36#include "moo_f2f.h"
37#include "moo_prepare.h"
38#include "moo_remove_crh.h"
39#include "moo_localise.h"
40#include "moo_model_flat.h"
41#include "moo_extract.h"
42#include "moo_compute_p2p.h"
43#include "moo_apply_p2p.h"
44#include "moo_compute_fibtrans.h"
45#include "moo_wavesol.h"
46#include "moo_rebin.h"
47#include "moo_apply_flat.h"
48#include "moo_target_table.h"
49#include "moo_sub_sky_stare.h"
50#include "moo_coadd.h"
51#include "moo_flx.h"
52#include "moo_atm.h"
53#include "moo_resp.h"
54#include "moo_compute_resp.h"
55#include "moo_calib_flux.h"
56#include "moo_fibres_table.h"
57#include "moo_create_s1d.h"
58#define MOO_DEBUG_COMPUTE_NOISE_MAP 0
59
60cpl_error_code moo_compute_noise_map(moo_det *det,
61 moo_detlist *darkList,
62 moo_masklist *cosmiclist,
63 moo_nos_params *params);
64
65cpl_error_code moo_compute_hot_map(moo_det *det, moo_hot_params *params);
66
67cpl_error_code moo_correct_bias(moo_det *det,
68 const cpl_frame *mbias,
69 moo_correct_bias_params *params);
70
71cpl_error_code moo_correct_dark(moo_det *det,
72 moo_det *detoff,
73 const cpl_frame *masterDarkVis,
74 const cpl_frame *masterDarkNir);
75
76
77cpl_error_code moo_correct_detlin(moo_det *det, const cpl_frame *cube_frame);
78
79#endif
cpl_error_code moo_compute_hot_map(moo_det *det, moo_hot_params *params)
Calculates the hot bad pixel mask.
Definition: moo_drl.c:830
cpl_error_code moo_compute_noise_map(moo_det *det, moo_detlist *darkList, moo_masklist *cosmiclist, moo_nos_params *params)
Calculates the noisey bad pixel mask.
Definition: moo_drl.c:629
cpl_error_code moo_correct_bias(moo_det *det, const cpl_frame *mbias, moo_correct_bias_params *params)
Subtracts the Master Bias frame from a DET frame.
Definition: moo_drl.c:86
cpl_error_code moo_correct_dark(moo_det *det, moo_det *detoff, const cpl_frame *masterDarkVis, const cpl_frame *masterDarkNir)
Subtracts the master dark frame from a frame after scaling for exposure time (RI)....
Definition: moo_drl.c:250
cpl_error_code moo_correct_detlin(moo_det *det, const cpl_frame *cube_frame)
Apply the detector linearity correction.
Definition: moo_drl.c:507