00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef XSH_DRL_CHECK_H
00029 #define XSH_DRL_CHECK_H
00030
00031
00032
00033
00034 #include <cpl.h>
00035 #include <xsh_drl.h>
00036 #include <xsh_error.h>
00037 #include <xsh_dfs.h>
00038 #include <xsh_utils.h>
00039 #include <xsh_data_pre.h>
00040 #include <xsh_data_rec.h>
00041 #include <xsh_data_instrument.h>
00042 #include <xsh_data_order.h>
00043 #include <xsh_data_dispersol.h>
00044 #include <xsh_data_slice_offset.h>
00045 #include <xsh_parameters.h>
00046 #include <xsh_qc_handling.h>
00047 #include <xsh_utils_ifu.h>
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 cpl_frame*
00060 xsh_check_load_master_bpmap(cpl_frameset* calib,xsh_instrument* inst,
00061 const char* rec_id);
00062
00063
00064 void xsh_check_get_map( cpl_frame *disp_tab_frame, cpl_frame *order_tab_edges,
00065 cpl_frame *crhm_frame, cpl_frame *model_config_frame, cpl_frameset *calib,
00066 xsh_instrument *instrument, int do_computemap, int recipe_use_model,
00067 const char *rec_prefix,
00068 cpl_frame **wavemap_frame, cpl_frame **slitmap_frame);
00069
00070 cpl_frame* xsh_check_remove_crh_multiple( cpl_frameset* raws,
00071 const char *ftag, xsh_stack_param* stack_par,
00072 xsh_clipping_param *crh_clipping, xsh_instrument* instr,
00073 cpl_imagelist ** lista, cpl_image** listb);
00074
00075 void xsh_check_afc( int check_flag, cpl_frame *model_frame,
00076 cpl_frame *sci_frame, cpl_frameset *wave_frameset,
00077 cpl_frame *order_tab_frame, cpl_frame *disp_tab_frame,
00078 xsh_instrument *instrument);
00079
00080 cpl_frame* xsh_check_subtract_bias( cpl_frame *crhm_frame,
00081 cpl_frame *master_bias,
00082 xsh_instrument *instrument,
00083 const char* prefix,
00084 const int pre_overscan_corr,const int save_tmp);
00085
00086 cpl_frame* xsh_check_subtract_dark( cpl_frame *rmbias_frame,
00087 cpl_frame *master_dark, xsh_instrument *instrument, const char* prefix);
00088
00089 cpl_frame* xsh_check_divide_flat( int do_flatfield, cpl_frame *clean_frame,
00090 cpl_frame *master_flat, xsh_instrument *instrument, const char* prefix);
00091
00092 cpl_frame* xsh_check_remove_crh_single( int nb_raws_frame,
00093 cpl_frame *subsky_frame,xsh_remove_crh_single_param *crh_single_par,
00094 xsh_instrument *instrument, const char* prefix);
00095
00096 cpl_frame* xsh_check_subtract_sky_single( int do_subsky, cpl_frame *src_frame,
00097 cpl_frame *ordertabedges_frame,
00098 cpl_frame *slitmap_frame, cpl_frame *wavemap_frame,
00099 cpl_frame *loctab_frame, cpl_frame *masterflat_frame,
00100 cpl_frame *definedbreakpoints_frame,
00101 xsh_instrument *instrument, int nbkpts,
00102 xsh_subtract_sky_single_param *sky_par,
00103 cpl_frame **sky_spectrum, cpl_frame **sky_spectrum_eso, cpl_frame **sky_img,
00104 const char *prefix,const int clean_tmp);
00105
00106 cpl_frame*
00107 xsh_save_sky_model( cpl_frame* obj_frame, cpl_frame* sub_sky_frame,
00108 const char* sky_tag,xsh_instrument* instrument);
00109
00110 #endif