X-shooter Pipeline Reference Manual 3.8.15
xsh_drl_check.h
Go to the documentation of this file.
1/* $Id: xsh_drl_check.h,v 1.16 2012-11-06 16:08:26 amodigli Exp $
2 *
3 * This file is part of the X-shooter Pipeline
4 * Copyright (C) 2006 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21/*
22 * $Author: amodigli $
23 * $Date: 2012-11-06 16:08:26 $
24 * $Revision: 1.16 $
25 * $Name: not supported by cvs2svn $
26 */
27
28#ifndef XSH_DRL_CHECK_H
29#define XSH_DRL_CHECK_H
30
31/*-----------------------------------------------------------------------------
32 Includes
33 -----------------------------------------------------------------------------*/
34#include <cpl.h>
35#include <xsh_drl.h>
36#include <xsh_error.h>
37#include <xsh_dfs.h>
38#include <xsh_utils.h>
39#include <xsh_data_pre.h>
40#include <xsh_data_rec.h>
41#include <xsh_data_instrument.h>
42#include <xsh_data_order.h>
43#include <xsh_data_dispersol.h>
45#include <xsh_parameters.h>
46#include <xsh_qc_handling.h>
47#include <xsh_utils_ifu.h>
48/*-----------------------------------------------------------------------------
49 Defines
50 -----------------------------------------------------------------------------*/
51
52/*--------------------------------------------------------------------------
53 Typedefs
54 -----------------------------------------------------------------------------*/
55
56/*-----------------------------------------------------------------------------
57 Prototypes
58 -----------------------------------------------------------------------------*/
59cpl_frame*
60xsh_check_load_master_bpmap(cpl_frameset* calib,xsh_instrument* inst,
61const char* rec_id);
62
63
64void xsh_check_get_map( cpl_frame *disp_tab_frame, cpl_frame *order_tab_edges,
65 cpl_frame *crhm_frame, cpl_frame *model_config_frame, cpl_frameset *calib,
66 xsh_instrument *instrument, int do_computemap, int recipe_use_model,
67 const char *rec_prefix,
68 cpl_frame **wavemap_frame, cpl_frame **slitmap_frame);
69
70cpl_frame* xsh_check_remove_crh_multiple( cpl_frameset* raws,
71 const char *ftag, xsh_stack_param* stack_par,
73 cpl_imagelist ** lista, cpl_image** listb);
74
75void xsh_check_afc( int check_flag, cpl_frame *model_frame,
76 cpl_frame *sci_frame, cpl_frameset *wave_frameset,
77 cpl_frame *order_tab_frame, cpl_frame *disp_tab_frame,
79
80cpl_frame* xsh_check_subtract_bias( cpl_frame *crhm_frame,
81 cpl_frame *master_bias,
83 const char* prefix,
84 const int pre_overscan_corr,const int save_tmp);
85
86cpl_frame* xsh_check_subtract_dark( cpl_frame *rmbias_frame,
87 cpl_frame *master_dark, xsh_instrument *instrument, const char* prefix);
88
89cpl_frame* xsh_check_divide_flat( int do_flatfield, cpl_frame *clean_frame,
90 cpl_frame *master_flat, xsh_instrument *instrument, const char* prefix);
91
92cpl_frame* xsh_check_remove_crh_single( int nb_raws_frame,
93 cpl_frame *subsky_frame,xsh_remove_crh_single_param *crh_single_par,
94 xsh_instrument *instrument, const char* prefix);
95
96cpl_frame* xsh_check_subtract_sky_single( int do_subsky,
97 cpl_frame *src_frame,
98 cpl_frame *ordertabedges_frame,
99 cpl_frame *slitmap_frame,
100 cpl_frame *wavemap_frame,
101 cpl_frame *loctab_frame,
102 cpl_frame *definedbreakpoints_frame,
104 int nbkpts,
106 cpl_frame* ref_sky_list,
107 cpl_frame* sky_orders_chhunks,
108 cpl_frame **sky_spectrum,
109 cpl_frame **sky_spectrum_eso,
110 cpl_frame **sky_img,
111 const char *prefix,
112 const int clean_tmp);
113
114
115cpl_frame*
116xsh_save_sky_model( cpl_frame* obj_frame, cpl_frame* sub_sky_frame,
117 const char* sky_tag,xsh_instrument* instrument);
118
119#endif
static xsh_instrument * instrument
static xsh_clipping_param crh_clipping
cpl_frame * xsh_save_sky_model(cpl_frame *obj_frame, cpl_frame *sub_sky_frame, const char *sky_tag, xsh_instrument *instrument)
void xsh_check_afc(int check_flag, cpl_frame *model_frame, cpl_frame *sci_frame, cpl_frameset *wave_frameset, cpl_frame *order_tab_frame, cpl_frame *disp_tab_frame, xsh_instrument *instrument)
Check AFC frame.
cpl_frame * xsh_check_subtract_bias(cpl_frame *crhm_frame, cpl_frame *master_bias, xsh_instrument *instrument, const char *prefix, const int pre_overscan_corr, const int save_tmp)
Check function to subtract bias.
cpl_frame * xsh_check_divide_flat(int do_flatfield, cpl_frame *clean_frame, cpl_frame *master_flat, xsh_instrument *instrument, const char *prefix)
Check function.
cpl_frame * xsh_check_subtract_sky_single(int do_subsky, cpl_frame *src_frame, cpl_frame *ordertabedges_frame, cpl_frame *slitmap_frame, cpl_frame *wavemap_frame, cpl_frame *loctab_frame, cpl_frame *definedbreakpoints_frame, xsh_instrument *instrument, int nbkpts, xsh_subtract_sky_single_param *sky_par, cpl_frame *ref_sky_list, cpl_frame *sky_orders_chhunks, cpl_frame **sky_spectrum, cpl_frame **sky_spectrum_eso, cpl_frame **sky_img, const char *prefix, const int clean_tmp)
Check function sky subtraction on single frame.
cpl_frame * xsh_check_subtract_dark(cpl_frame *rmbias_frame, cpl_frame *master_dark, xsh_instrument *instrument, const char *prefix)
Check function for dark subtraction.
cpl_frame * xsh_check_load_master_bpmap(cpl_frameset *calib, xsh_instrument *inst, const char *rec_id)
Definition: xsh_drl_check.c:51
cpl_frame * xsh_check_remove_crh_multiple(cpl_frameset *raws, const char *ftag, xsh_stack_param *stack_par, xsh_clipping_param *crh_clipping, xsh_instrument *instr, cpl_imagelist **lista, cpl_image **listb)
Check function.
void xsh_check_get_map(cpl_frame *disp_tab_frame, cpl_frame *order_tab_edges, cpl_frame *crhm_frame, cpl_frame *model_config_frame, cpl_frameset *calib, xsh_instrument *instrument, int do_computemap, int recipe_use_model, const char *rec_prefix, cpl_frame **wavemap_frame, cpl_frame **slitmap_frame)
Check function to get wave and slit maps.
cpl_frame * xsh_check_remove_crh_single(int nb_raws_frame, cpl_frame *subsky_frame, xsh_remove_crh_single_param *crh_single_par, xsh_instrument *instrument, const char *prefix)
Check function.