#include <cpl.h>
#include <xsh_data_instrument.h>
#include <xsh_utils_scired_slit.h>
#include <xsh_parameters.h>
Go to the source code of this file.
Functions | |
cpl_error_code | xsh_scired_slit_nod_fast (cpl_frameset *nod_set, cpl_frame *spectral_format, cpl_frame *master_flat, cpl_frame *order_tab_edges, cpl_frame *wave_tab, cpl_frame *model_config_frame, cpl_frame *disp_tab_frame, cpl_frame *wavemap, cpl_frame *slitmap, xsh_instrument *instrument, xsh_remove_crh_single_param *crh_single_par, xsh_rectify_param *rectify_par, const int do_flatfield, const int compute_eff, const char *rec_prefix, cpl_frameset **comb_set, cpl_frameset **comb_eff_set) |
cpl_frameset * | xsh_scired_slit_nod_accurate (cpl_frameset *nod_set, cpl_frame *spectral_format, cpl_frame *master_flat, cpl_frame *order_tab_edges, cpl_frame *wave_tab, cpl_frame *model_config_frame, cpl_frame *disp_tab_frame, cpl_frame *wavemap, cpl_frame *slitmap, cpl_frame *skymask_frame, xsh_instrument *instrument, xsh_remove_crh_single_param *crh_single_par, xsh_rectify_param *rectify_par, xsh_localize_obj_param *loc_obj_par, xsh_slit_limit_param *slit_limit_par, const char *throw_name, const int do_flatfield, const char *rec_prefix) |
void | xsh_scired_slit_nod_get_calibs (cpl_frameset *raws, cpl_frameset *calib, xsh_instrument *instrument, cpl_frame **bpmap, cpl_frame **master_bias, cpl_frame **master_flat, cpl_frame **order_tab_edges, cpl_frame **wave_tab, cpl_frame **model_config_frame, cpl_frame **wavemap, cpl_frame **slitmap, cpl_frame **disp_tab_frame, cpl_frame **spectral_format, cpl_frame **skymask_frame, cpl_frame **response_ord_frame, cpl_frame **frm_atmext, int do_computemap, int use_skymask, const char *rec_prefix) |
cpl_error_code | xsh_scired_nod_get_parameters (cpl_parameterlist *parameters, xsh_instrument *instrument, xsh_remove_crh_single_param **crh_single_par, xsh_rectify_param **rectify_par, xsh_merge_param **merge_par, xsh_extract_param **extract_par, xsh_combine_nod_param **combine_nod_par, xsh_slit_limit_param **slit_limit_par, xsh_localize_obj_param **loc_obj_par, int *rectify_fast, int binx, int biny, const char *rec_id) |
cpl_frameset * | xsh_nod_group_by_reloff (cpl_frameset *ord_set, xsh_instrument *instrument, xsh_clipping_param *crh_clipping_par) |
cpl_error_code | xsh_flux_calibrate (cpl_frame *rect2D, cpl_frame *rect1D, cpl_frame *atmext, cpl_frame *response, xsh_merge_param *mpar, xsh_instrument *inst, const char *rec_prefix, cpl_frame **fcal_rect_2D, cpl_frame **fcal_rect_1D, cpl_frame **fcal_2D, cpl_frame **fcal_1D) |
cpl_error_code | xsh_slit_stare_get_calibs (cpl_frameset *calib, xsh_instrument *instrument, cpl_frame **spectralformat, cpl_frame **mbias, cpl_frame **mdark, cpl_frame **mflat, cpl_frame **otab_edges, cpl_frame **model_cfg, cpl_frame **wave_tab, cpl_frame **sky_list, cpl_frame **qc_sky, cpl_frame **bpmap, cpl_frame **sframe_sky_sub_tab, cpl_frame **wmap, cpl_frame **smap, int *recipe_use_model) |
cpl_error_code | xsh_slit_offset_get_calibs (cpl_frameset *calib, xsh_instrument *instrument, cpl_frame **bpmap, cpl_frame **mbias, cpl_frame **mdark, cpl_frame **otab_edges, cpl_frame **model_cfg, cpl_frame **wave_tab, cpl_frame **mflat, cpl_frame **wmap, cpl_frame **spectral_format) |
cpl_error_code | xsh_slit_stare_get_params (cpl_parameterlist *parameters, const char *rec_id, int *pre_overscan_corr, xsh_clipping_param **crh_clipping_par, xsh_background_param **backg_par, xsh_localize_obj_param **loc_obj_par, xsh_rectify_param **rectify_par, xsh_remove_crh_single_param **crh_single_par, int *sub_sky_nbkpts1, int *do_flatfield, int *sub_sky_nbkpts2, xsh_subtract_sky_single_param **sky_par, xsh_extract_param **extract_par, int *do_optextract, xsh_merge_param **merge_par, xsh_opt_extract_param **opt_extract_par, int *do_trace_obj) |
cpl_error_code | xsh_slit_offset_get_params (cpl_parameterlist *parameters, const char *rec_id, xsh_clipping_param **crh_clipping_par, xsh_background_param **backg_par, xsh_localize_obj_param **loc_obj_par, xsh_rectify_param **rectify_par, xsh_remove_crh_single_param **crh_single_par, double *opt_kappa, xsh_merge_param **merge_par, xsh_extract_param **extract_par, xsh_combine_nod_param **combine_nod_param, int *do_flatfield, int *gen_sky) |
cpl_error_code | xsh_slit_stare_correct_crh_and_sky (xsh_localize_obj_param *loc_obj_par, xsh_remove_crh_single_param *crh_single_par, xsh_rectify_param *rectify_par, int do_sub_sky, const char *rec_prefix, cpl_frame *rmbkg, cpl_frame *order_tab_edges, cpl_frame *slitmap, cpl_frame *wavemap, cpl_frame *model_config, cpl_frame *single_frame_sky_sub_tab, xsh_instrument *instrument, int sub_sky_nbkpts1, xsh_subtract_sky_single_param *sky_par, cpl_frame **sky, cpl_frame **sky_eso, cpl_frame **sky_ima, cpl_frame *wave_tab, cpl_frame *disp_tab, cpl_frame *spectral_format, int nb_raw_frames, cpl_frame **loc_table, cpl_frame **clean, cpl_frame **clean_obj) |
cpl_error_code | xsh_slit_stare_get_maps (cpl_frameset *calib, int do_compute_map, int recipe_use_model, const char *rec_prefix, xsh_instrument *instrument, cpl_frame *model_config_frame, cpl_frame *crhm_frame, cpl_frame *disp_tab_frame, cpl_frame *order_tab_edges, cpl_frame **wavemap_frame, cpl_frame **slitmap_frame) |
cpl_error_code | xsh_scired_util_spectra_flux_calibrate (cpl_frame *res2D, cpl_frame *res1D, cpl_frame *response, cpl_frame *atmext, xsh_instrument *inst, const char *prefix, cpl_frame **fluxcal_2D, cpl_frame **fluxcal_1D) |
cpl_error_code xsh_flux_calibrate | ( | cpl_frame * | rect2D, | |
cpl_frame * | rect1D, | |||
cpl_frame * | atmext, | |||
cpl_frame * | response, | |||
xsh_merge_param * | mpar, | |||
xsh_instrument * | inst, | |||
const char * | rec_prefix, | |||
cpl_frame ** | fcal_rect_2D, | |||
cpl_frame ** | fcal_rect_1D, | |||
cpl_frame ** | fcal_2D, | |||
cpl_frame ** | fcal_1D | |||
) |
Definition at line 1103 of file xsh_utils_scired_slit.c.
References check, XSH_FLUX_ORDER1D, XSH_FLUX_ORDER2D, xsh_free_frame(), xsh_instrument_arm_tostring(), xsh_merge_ord(), XSH_NORM_ORDER1D, XSH_NORM_ORDER2D, xsh_normalize_spectrum_ord(), and xsh_util_multiply_by_response_ord().
Referenced by xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_respon_slit_stare(), xsh_scired_slit_nod(), xsh_scired_slit_offset(), and xsh_scired_slit_stare().
cpl_frameset* xsh_nod_group_by_reloff | ( | cpl_frameset * | ord_set, | |
xsh_instrument * | instrument, | |||
xsh_clipping_param * | crh_clipping_par | |||
) |
Definition at line 94 of file xsh_utils_scired_slit.c.
References check, XSH_ASSURE_NOT_NULL, xsh_free_frameset(), xsh_free_propertylist(), xsh_msg, xsh_pfits_get_dec_cumoffset(), xsh_pfits_get_dec_reloffset(), xsh_pfits_get_ra_cumoffset(), xsh_pfits_get_ra_reloffset(), and xsh_remove_crh_multiple().
Referenced by xsh_respon_slit_nod(), and xsh_scired_slit_nod().
cpl_error_code xsh_scired_nod_get_parameters | ( | cpl_parameterlist * | parameters, | |
xsh_instrument * | instrument, | |||
xsh_remove_crh_single_param ** | crh_single_par, | |||
xsh_rectify_param ** | rectify_par, | |||
xsh_merge_param ** | merge_par, | |||
xsh_extract_param ** | extract_par, | |||
xsh_combine_nod_param ** | combine_nod_par, | |||
xsh_slit_limit_param ** | slit_limit_par, | |||
xsh_localize_obj_param ** | loc_obj_par, | |||
int * | rectify_fast, | |||
int | binx, | |||
int | biny, | |||
const char * | rec_id | |||
) |
Definition at line 1056 of file xsh_utils_scired_slit.c.
References check, xsh_parameters_combine_nod_get(), xsh_parameters_extract_get(), xsh_parameters_localize_obj_get(), xsh_parameters_merge_ord_get(), xsh_parameters_rectify_fast_get(), xsh_parameters_rectify_get(), xsh_parameters_remove_crh_single_get(), xsh_parameters_slit_limit_get(), xsh_scired_nod_params_monitor(), and xsh_scired_nod_params_set_defaults().
Referenced by xsh_respon_slit_nod(), and xsh_scired_slit_nod().
cpl_frameset* xsh_scired_slit_nod_accurate | ( | cpl_frameset * | nod_set, | |
cpl_frame * | spectral_format, | |||
cpl_frame * | master_flat, | |||
cpl_frame * | order_tab_edges, | |||
cpl_frame * | wave_tab, | |||
cpl_frame * | model_config_frame, | |||
cpl_frame * | disp_tab_frame, | |||
cpl_frame * | wavemap, | |||
cpl_frame * | slitmap, | |||
cpl_frame * | skymask_frame, | |||
xsh_instrument * | instrument, | |||
xsh_remove_crh_single_param * | crh_single_par, | |||
xsh_rectify_param * | rectify_par, | |||
xsh_localize_obj_param * | loc_obj_par, | |||
xsh_slit_limit_param * | slit_limit_par, | |||
const char * | throw_name, | |||
const int | do_flatfield, | |||
const char * | rec_prefix | |||
) |
Definition at line 659 of file xsh_utils_scired_slit.c.
References check, mode, xsh_abs_remove_crh_single(), XSH_CALLOC, xsh_error_msg, xsh_frame_divide_flat(), XSH_FREE, xsh_free_frame(), xsh_free_frameset(), xsh_instrument_arm_tostring(), xsh_localize_obj(), xsh_msg, xsh_msg_dbg_high, xsh_rec_list_frame_invert(), xsh_rectify(), and xsh_rectify_and_shift().
Referenced by xsh_respon_slit_nod(), and xsh_scired_slit_nod().
cpl_error_code xsh_scired_slit_nod_fast | ( | cpl_frameset * | nod_set, | |
cpl_frame * | spectral_format, | |||
cpl_frame * | master_flat, | |||
cpl_frame * | order_tab_edges, | |||
cpl_frame * | wave_tab, | |||
cpl_frame * | model_config_frame, | |||
cpl_frame * | disp_tab_frame, | |||
cpl_frame * | wavemap, | |||
cpl_frame * | slitmap, | |||
xsh_instrument * | instrument, | |||
xsh_remove_crh_single_param * | crh_single_par, | |||
xsh_rectify_param * | rectify_par, | |||
const int | do_flatfield, | |||
const int | compute_eff, | |||
const char * | rec_prefix, | |||
cpl_frameset ** | comb_set, | |||
cpl_frameset ** | comb_eff_set | |||
) |
Definition at line 527 of file xsh_utils_scired_slit.c.
References check, xsh_rectify_param::conserve_flux, xsh_abs_remove_crh_single(), xsh_frame_divide_flat(), XSH_FREE, xsh_free_frame(), xsh_instrument_arm_tostring(), xsh_msg, xsh_msg_dbg_high, and xsh_nod_rectify_and_shift_with_key().
Referenced by xsh_respon_slit_nod(), and xsh_scired_slit_nod().
void xsh_scired_slit_nod_get_calibs | ( | cpl_frameset * | raws, | |
cpl_frameset * | calib, | |||
xsh_instrument * | instrument, | |||
cpl_frame ** | bpmap, | |||
cpl_frame ** | master_bias, | |||
cpl_frame ** | master_flat, | |||
cpl_frame ** | order_tab_edges, | |||
cpl_frame ** | wave_tab, | |||
cpl_frame ** | model_config_frame, | |||
cpl_frame ** | wavemap, | |||
cpl_frame ** | slitmap, | |||
cpl_frame ** | disp_tab_frame, | |||
cpl_frame ** | spectral_format, | |||
cpl_frame ** | skymask_frame, | |||
cpl_frame ** | response_ord_frame, | |||
cpl_frame ** | frm_atmext, | |||
int | do_computemap, | |||
int | use_skymask, | |||
const char * | rec_prefix | |||
) |
Definition at line 862 of file xsh_utils_scired_slit.c.
References check, XSH_ARM_NIR, XSH_ASSURE_NOT_ILLEGAL, XSH_ATMOS_EXT, xsh_check_get_map(), xsh_error_reset, xsh_find_disp_tab(), xsh_find_frame_with_tag(), xsh_find_master_bias(), xsh_find_master_bpmap(), xsh_find_master_flat(), xsh_find_order_tab_edges(), xsh_find_spectral_format(), xsh_find_wave_tab(), xsh_find_wavemap(), xsh_instrument_get_arm(), XSH_MOD_CFG_OPT_2D, XSH_MOD_CFG_OPT_AFC, XSH_MOD_CFG_TAB, xsh_msg, xsh_msg_error, XSH_RESPONSE_MERGE1D_SLIT, and XSH_SKY_LINE_LIST.
Referenced by xsh_respon_slit_nod(), and xsh_scired_slit_nod().
cpl_error_code xsh_scired_util_spectra_flux_calibrate | ( | cpl_frame * | res2D, | |
cpl_frame * | res1D, | |||
cpl_frame * | response, | |||
cpl_frame * | atmext, | |||
xsh_instrument * | inst, | |||
const char * | prefix, | |||
cpl_frame ** | fluxcal_2D, | |||
cpl_frame ** | fluxcal_1D | |||
) |
Definition at line 1570 of file xsh_utils_scired_slit.c.
References check, xsh_free_frame(), xsh_instrument_arm_tostring(), xsh_normalize_spectrum(), and xsh_util_multiply_by_response().
cpl_error_code xsh_slit_offset_get_calibs | ( | cpl_frameset * | calib, | |
xsh_instrument * | instrument, | |||
cpl_frame ** | bpmap, | |||
cpl_frame ** | mbias, | |||
cpl_frame ** | mdark, | |||
cpl_frame ** | otab_edges, | |||
cpl_frame ** | model_cfg, | |||
cpl_frame ** | wave_tab, | |||
cpl_frame ** | mflat, | |||
cpl_frame ** | wmap, | |||
cpl_frame ** | spectral_format | |||
) |
Definition at line 1253 of file xsh_utils_scired_slit.c.
References check, XSH_ARM_NIR, XSH_ASSURE_NOT_ILLEGAL, xsh_error_reset, xsh_find_frame_with_tag(), xsh_find_master_bpmap(), xsh_find_master_flat(), xsh_find_order_tab_edges(), xsh_find_spectral_format(), xsh_find_wave_tab(), xsh_find_wavemap(), xsh_instrument_get_arm(), XSH_MASTER_BIAS, XSH_MASTER_DARK, XSH_MOD_CFG_OPT_2D, XSH_MOD_CFG_OPT_AFC, and XSH_MOD_CFG_TAB.
Referenced by xsh_respon_slit_offset(), and xsh_scired_slit_offset().
cpl_error_code xsh_slit_offset_get_params | ( | cpl_parameterlist * | parameters, | |
const char * | rec_id, | |||
xsh_clipping_param ** | crh_clipping_par, | |||
xsh_background_param ** | backg_par, | |||
xsh_localize_obj_param ** | loc_obj_par, | |||
xsh_rectify_param ** | rectify_par, | |||
xsh_remove_crh_single_param ** | crh_single_par, | |||
double * | opt_kappa, | |||
xsh_merge_param ** | merge_par, | |||
xsh_extract_param ** | extract_par, | |||
xsh_combine_nod_param ** | combine_nod_param, | |||
int * | do_flatfield, | |||
int * | gen_sky | |||
) |
Definition at line 1362 of file xsh_utils_scired_slit.c.
References check, xsh_msg, xsh_parameters_background_get(), xsh_parameters_clipping_crh_get(), xsh_parameters_combine_nod_get(), xsh_parameters_extract_get(), xsh_parameters_get_boolean(), xsh_parameters_localize_obj_get(), xsh_parameters_merge_ord_get(), xsh_parameters_optimal_extract_get_kappa(), xsh_parameters_rectify_get(), and xsh_parameters_remove_crh_single_get().
Referenced by xsh_respon_slit_offset(), and xsh_scired_slit_offset().
cpl_error_code xsh_slit_stare_correct_crh_and_sky | ( | xsh_localize_obj_param * | loc_obj_par, | |
xsh_remove_crh_single_param * | crh_single_par, | |||
xsh_rectify_param * | rectify_par, | |||
int | do_sub_sky, | |||
const char * | rec_prefix, | |||
cpl_frame * | rmbkg, | |||
cpl_frame * | order_tab_edges, | |||
cpl_frame * | slitmap, | |||
cpl_frame * | wavemap, | |||
cpl_frame * | model_config, | |||
cpl_frame * | single_frame_sky_sub_tab, | |||
xsh_instrument * | instrument, | |||
int | sub_sky_nbkpts1, | |||
xsh_subtract_sky_single_param * | sky_par, | |||
cpl_frame ** | sky, | |||
cpl_frame ** | sky_eso, | |||
cpl_frame ** | sky_ima, | |||
cpl_frame * | wave_tab, | |||
cpl_frame * | disp_tab, | |||
cpl_frame * | spectral_format, | |||
int | nb_raw_frames, | |||
cpl_frame ** | loc_table, | |||
cpl_frame ** | clean, | |||
cpl_frame ** | clean_obj | |||
) |
< Output of xsh_subtract_sky_single
< Output of xsh_rectfiy
Definition at line 1413 of file xsh_utils_scired_slit.c.
References check, LOC_MANUAL_METHOD, xsh_localize_obj_param::method, xsh_remove_crh_single_param::nb_iter, xsh_add_sky_model(), xsh_check_remove_crh_single(), xsh_check_subtract_sky_single(), xsh_free_frame(), xsh_instrument_arm_tostring(), xsh_localize_obj(), xsh_msg, XSH_ORDER2D, and xsh_rectify().
Referenced by xsh_respon_slit_stare(), and xsh_scired_slit_stare().
cpl_error_code xsh_slit_stare_get_calibs | ( | cpl_frameset * | calib, | |
xsh_instrument * | instrument, | |||
cpl_frame ** | spectralformat, | |||
cpl_frame ** | mbias, | |||
cpl_frame ** | mdark, | |||
cpl_frame ** | mflat, | |||
cpl_frame ** | otab_edges, | |||
cpl_frame ** | model_cfg, | |||
cpl_frame ** | wave_tab, | |||
cpl_frame ** | sky_list, | |||
cpl_frame ** | qc_sky, | |||
cpl_frame ** | bpmap, | |||
cpl_frame ** | sframe_sky_sub_tab, | |||
cpl_frame ** | wmap, | |||
cpl_frame ** | smap, | |||
int * | recipe_use_model | |||
) |
Definition at line 1144 of file xsh_utils_scired_slit.c.
References binx, biny, check, XSH_ARM_NIR, XSH_ASSURE_NOT_NULL_MSG, xsh_error_reset, xsh_find_frame_with_tag(), xsh_find_master_bias(), xsh_find_master_bpmap(), xsh_find_master_dark(), xsh_find_master_flat(), xsh_find_order_tab_edges(), xsh_find_wave_tab(), xsh_free_propertylist(), xsh_instrument_get_arm(), xsh_instrument_update_from_spectralformat(), XSH_MASTER_DARK, XSH_MOD_CFG_OPT_2D, XSH_MOD_CFG_OPT_AFC, XSH_MOD_CFG_TAB, xsh_msg, xsh_msg_error, xsh_msg_warning, xsh_pfits_get_binx(), xsh_pfits_get_biny(), XSH_SKY_LINE_LIST, XSH_SKY_SUB_BKPTS, XSH_SLIT_MAP, XSH_SPECTRAL_FORMAT, xsh_util_physmod_model_THE_create(), and XSH_WAVE_MAP.
Referenced by xsh_respon_slit_stare(), and xsh_scired_slit_stare().
cpl_error_code xsh_slit_stare_get_maps | ( | cpl_frameset * | calib, | |
int | do_compute_map, | |||
int | recipe_use_model, | |||
const char * | rec_prefix, | |||
xsh_instrument * | instrument, | |||
cpl_frame * | model_config_frame, | |||
cpl_frame * | crhm_frame, | |||
cpl_frame * | disp_tab_frame, | |||
cpl_frame * | order_tab_edges, | |||
cpl_frame ** | wavemap_frame, | |||
cpl_frame ** | slitmap_frame | |||
) |
Definition at line 1525 of file xsh_utils_scired_slit.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_respon_slit_stare(), and xsh_scired_slit_stare().
cpl_error_code xsh_slit_stare_get_params | ( | cpl_parameterlist * | parameters, | |
const char * | rec_id, | |||
int * | pre_overscan_corr, | |||
xsh_clipping_param ** | crh_clipping_par, | |||
xsh_background_param ** | backg_par, | |||
xsh_localize_obj_param ** | loc_obj_par, | |||
xsh_rectify_param ** | rectify_par, | |||
xsh_remove_crh_single_param ** | crh_single_par, | |||
int * | sub_sky_nbkpts1, | |||
int * | do_flatfield, | |||
int * | sub_sky_nbkpts2, | |||
xsh_subtract_sky_single_param ** | sky_par, | |||
xsh_extract_param ** | extract_par, | |||
int * | do_optextract, | |||
xsh_merge_param ** | merge_par, | |||
xsh_opt_extract_param ** | opt_extract_par, | |||
int * | do_trace_obj | |||
) |
Definition at line 1308 of file xsh_utils_scired_slit.c.
References check, xsh_parameters_background_get(), xsh_parameters_clipping_crh_get(), xsh_parameters_extract_get(), xsh_parameters_get_boolean(), xsh_parameters_get_int(), xsh_parameters_localize_obj_get(), xsh_parameters_merge_ord_get(), xsh_parameters_opt_extract_get(), xsh_parameters_rectify_get(), xsh_parameters_remove_crh_single_get(), xsh_parameters_subtract_sky_single_get(), xsh_parameters_subtract_sky_single_get_first(), and xsh_parameters_subtract_sky_single_get_second().
Referenced by xsh_respon_slit_stare(), and xsh_scired_slit_stare().