#include <cpl.h>#include <xsh_drl.h>#include <xsh_error.h>#include <xsh_dfs.h>#include <xsh_utils.h>#include <xsh_data_pre.h>#include <xsh_data_rec.h>#include <xsh_data_instrument.h>#include <xsh_data_order.h>#include <xsh_data_dispersol.h>#include <xsh_data_slice_offset.h>#include <xsh_parameters.h>#include <xsh_qc_handling.h>Go to the source code of this file.
Functions | |
| cpl_frame * | xsh_check_load_master_bpmap (cpl_frameset *calib, xsh_instrument *inst) |
| 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_multiple (cpl_frameset *raws, const char *ftag, xsh_clipping_param *crh_clipping, xsh_instrument *instr, cpl_imagelist **lista, cpl_image **listb) |
| Check function. | |
| 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) |
| Check function to subtract bias. | |
| 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_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_remove_crh_single (int nb_raws_frame, cpl_frame *subsky_frame, xsh_remove_crh_single_param *crh_single_par, cpl_frame *wavemap_frame, 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 *masterflat_frame, cpl_frame *definedbreakpoints_frame, xsh_instrument *instrument, int nbkpts, xsh_subtract_sky_single_param *sky_par, cpl_frame **sky_spectrum, cpl_frame **sky_spectrum_eso, cpl_frame **sky_img, const char *prefix) |
| Check functionfor sky subtraction on single frame. | |
| cpl_frame * | xsh_save_sky_model (cpl_frame *obj_frame, cpl_frame *sub_sky_frame, const char *sky_tag, xsh_instrument *instrument) |
| 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.
| do_flatfield | check if flat field has to be applied | |
| clean_frame | input frame cleaned by CRHs | |
| master_flat | input master flat field | |
| instrument | structure containing instrument arm and lamp setting | |
| prefix | file prefix |
Definition at line 324 of file xsh_drl_check.c.
References check, XSH_ASSURE_NOT_NULL, xsh_divide_flat(), xsh_instrument_arm_tostring(), and xsh_msg.
Referenced by xsh_respon_slit_stare(), and xsh_scired_slit_stare().
| 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.
| disp_tab_frame | dispersion table frame | |
| order_tab_edges | order edge table | |
| crhm_frame | frame CRH corrected | |
| model_config_frame | model cfg frame | |
| calib | calibration frame list | |
| instrument | instrument setting arm and lamp | |
| do_computemap | switch parameter to compute por not the slit/wave maps | |
| recipe_use_model | are we using the model cfg? REALLY NEEDED? | |
| rec_prefix | recipe prefix | |
| wavemap_frame | wavemap frame | |
| slitmap_frame | slitmap frame |
Definition at line 140 of file xsh_drl_check.c.
References check, xsh_create_map(), xsh_create_model_map(), xsh_find_slitmap(), xsh_find_wavemap(), xsh_instrument_arm_tostring(), xsh_model_temperature_update_frame(), xsh_msg, XSH_SLIT_MAP_MODEL, and XSH_WAVE_MAP_MODEL.
Referenced by xsh_scired_slit_nod_get_calibs().
| cpl_frame* xsh_check_load_master_bpmap | ( | cpl_frameset * | calib, | |
| xsh_instrument * | inst | |||
| ) |
Definition at line 50 of file xsh_drl_check.c.
References binx, XSH_ARM_NIR, XSH_ARM_UVB, XSH_ARM_VIS, xsh_badpixelmap_coadd(), XSH_BP_MAP_NL, xsh_bpmap_2pre(), xsh_find_frame_with_tag(), xsh_free_frame(), xsh_free_image(), xsh_free_propertylist(), xsh_instrument_arm_tostring(), xsh_instrument_get_arm(), XSH_MASTER_BP_MAP, xsh_msg, xsh_pfits_get_binx(), xsh_pfits_get_naxis1(), xsh_pfits_set_pcatg(), XSH_PRE_DATA_BPP, and xsh_pre_free().
Referenced by xsh_mbias(), xsh_mdark(), and xsh_mflat().
| cpl_frame* xsh_check_remove_crh_multiple | ( | cpl_frameset * | raws, | |
| const char * | ftag, | |||
| xsh_clipping_param * | crh_clipping_par, | |||
| xsh_instrument * | instr, | |||
| cpl_imagelist ** | lista, | |||
| cpl_image ** | listb | |||
| ) |
Check function.
| raws | input raw frames | |
| ftag | file tag | |
| crh_clipping_par | parameter controlling CRH | |
| instr | instrument arm and lamp setting | |
| lista | output imagelist | |
| listb | output image |
Definition at line 197 of file xsh_drl_check.c.
References check, check_msg, xsh_clipping_param::frac, xsh_clipping_param::niter, xsh_clipping_param::sigma, XSH_ASSURE_NOT_NULL, xsh_msg, xsh_msg_dbg_low, and xsh_remove_crh_multiple().
Referenced by xsh_scired_slit_stare().
| cpl_frame* xsh_check_remove_crh_single | ( | int | nb_raws_frame, | |
| cpl_frame * | subsky_frame, | |||
| xsh_remove_crh_single_param * | crh_single_par, | |||
| cpl_frame * | wavemap_frame, | |||
| xsh_instrument * | instrument, | |||
| const char * | prefix | |||
| ) |
Check function.
| nb_raws_frame | number of raw frames | |
| subsky_frame | frame sky subtracted | |
| crh_single_par | parameters to control CRH (single frame) subtraction | |
| wavemap_frame | wavemap frame | |
| instrument | instrument arm and lamp setting | |
| prefix | file prefix |
Definition at line 363 of file xsh_drl_check.c.
References check, xsh_remove_crh_single_param::nb_iter, XSH_ASSURE_NOT_NULL, xsh_instrument_arm_tostring(), xsh_msg, and xsh_remove_crh_single().
Referenced by xsh_slit_stare_correct_crh_and_sky().
| 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 | |||
| ) |
Check function to subtract bias.
| crhm_frame | input frame (eventually cleaned by CRH) | |
| master_bias | master bias | |
| instrument | instrument arm and lamp setting | |
| prefix | file prefix | |
| pre_overscan_corr | correct for overscan? |
Definition at line 237 of file xsh_drl_check.c.
References check, XSH_ARM_NIR, XSH_ASSURE_NOT_NULL, xsh_instrument_arm_tostring(), xsh_instrument_get_arm(), xsh_msg, and xsh_subtract_bias().
Referenced by xsh_respon_slit_stare(), and xsh_scired_slit_stare().
| 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.
| rmbias_frame | input frame | |
| master_dark | master dark | |
| instrument | instrument arm and lamp setting | |
| prefix | file prefix |
Definition at line 286 of file xsh_drl_check.c.
References check, XSH_ASSURE_NOT_NULL, xsh_msg, and xsh_subtract_dark().
Referenced by xsh_respon_slit_stare(), xsh_scired_slit_stare(), and xsh_wavecal().
| 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 * | masterflat_frame, | |||
| cpl_frame * | definedbreakpoints_frame, | |||
| xsh_instrument * | instrument, | |||
| int | nbkpts, | |||
| xsh_subtract_sky_single_param * | sky_par, | |||
| cpl_frame ** | sky_spectrum, | |||
| cpl_frame ** | sky_spectrum_eso, | |||
| cpl_frame ** | sky_img, | |||
| const char * | prefix | |||
| ) |
Check functionfor sky subtraction on single frame.
| [in] | do_subsky | do sky subtraction? |
| [in] | src_frame | source frame |
| [in] | ordertabedges_frame | order edge table |
| [in] | slitmap_frame | slit map frame |
| [in] | wavemap_frame | wave map frame |
| [in] | loctab_frame | localization table |
| [in] | masterflat_frame | master flat frame |
| [in] | definedbreakpoints_frame | frame defining break points order by order |
| [in] | instrument | instrument arm and lamp setting |
| [in] | nbkpts | number of break points |
| [in] | sky_par | parameters controlling sky subtraction |
| [out] | sky_spectrum | output sky spectrum 1D |
| [out] | sky_spectrum_eso | output sky spectrum ESO format |
| [out] | sky_img | sky image for QC |
| [in] | prefix | file prefix |
Definition at line 415 of file xsh_drl_check.c.
References check, XSH_ASSURE_NOT_NULL, xsh_instrument_arm_tostring(), xsh_msg, xsh_save_sky_model(), and xsh_subtract_sky_single().
Referenced by xsh_respon_slit_stare(), xsh_scired_slit_stare(), and xsh_slit_stare_correct_crh_and_sky().
1.6.1