#include <xsh_drl.h>
#include <xsh_pfits.h>
#include <xsh_pfits_qc.h>
#include <xsh_utils.h>
#include <xsh_data_order.h>
#include <xsh_error.h>
#include <xsh_msg.h>
#include <xsh_data_pre.h>
#include <xsh_data_wavesol.h>
#include <xsh_data_resid_tab.h>
#include <xsh_data_wavemap.h>
#include <xsh_data_spectralformat.h>
#include <xsh_model_io.h>
#include <xsh_model_kernel.h>
#include <cpl.h>
Go to the source code of this file.
Functions | |
void | xsh_create_map (cpl_frame *dispsol_frame, cpl_frame *ordertab_frame, cpl_frame *pre_frame, xsh_instrument *instrument, cpl_frame **wavemap_frame, cpl_frame **slitmap_frame, const char *rec_prefix) |
void | xsh_create_model_map (cpl_frame *model_frame, xsh_instrument *instrument, const char *wtag, const char *stag, cpl_frame **wavemap_frame, cpl_frame **slitmap_frame) |
cpl_frame * | xsh_create_poly_wavemap (cpl_frame *pre_frame, cpl_frame *wave_tab_2d_frame, cpl_frame *order_tab_frame, cpl_frame *spectral_format_frame, xsh_dispersol_param *dispsol_par, xsh_instrument *instrument, const char *wm_tag, cpl_frame **dispersol_frame, cpl_frame **slitmap_frame) |
cpl_frame * | xsh_create_dispersol_physmod (cpl_frame *pre_frame, cpl_frame *order_tab_frame, cpl_frame *mod_cfg_frame, cpl_frame *wave_map_frame, cpl_frame *slit_map_frame, xsh_dispersol_param *dispsol_param, cpl_frame *spectral_format_frame, xsh_instrument *instrument) |
cpl_error_code | xsh_wavemap_qc (cpl_frame *frm_map, const cpl_frame *frm_tab) |
Monitor Flux level along the orders traces given by an input table. | |
cpl_error_code | xsh_wavetab_qc (cpl_frame *frm_tab, const int is_poly) |
Monitor min/max/med/avg distance between detected lines on each ordee. |
cpl_frame* xsh_create_dispersol_physmod | ( | cpl_frame * | pre_frame, | |
cpl_frame * | order_tab_frame, | |||
cpl_frame * | mod_cfg_frame, | |||
cpl_frame * | wave_map_frame, | |||
cpl_frame * | slit_map_frame, | |||
xsh_dispersol_param * | dispsol_param, | |||
cpl_frame * | spectral_format_frame, | |||
xsh_instrument * | instrument | |||
) |
Definition at line 359 of file xsh_create_wavemap.c.
References xsh_spectralformat::absorder, xsh_instrument::binx, binx, xsh_instrument::biny, biny, check, xsh_spectralformat::lambda_max_full, xsh_spectralformat::lambda_min_full, lambda_step, xsh_spectralformat_list::list, xsh_spectralformat_list::size, size, slit_step, x, XSH_ASSURE_NOT_ILLEGAL_MSG, XSH_ASSURE_NOT_NULL_MSG, xsh_debug_level_get(), XSH_DEBUG_LEVEL_MEDIUM, XSH_FREE, xsh_free_image(), xsh_instrument_arm_tostring(), xsh_instrument_get_binx(), xsh_instrument_get_biny(), XSH_MALLOC, xsh_model_binxy(), xsh_model_config_load_best(), xsh_model_get_xy(), xsh_msg, xsh_msg_dbg_medium, xsh_pre_free(), xsh_pre_load(), xsh_spectralformat_list_free(), xsh_spectralformat_list_load(), xsh_wavemap_list_compute_poly(), xsh_wavemap_list_create(), xsh_wavemap_list_free(), xsh_wavemap_list_save_poly(), and y.
Referenced by xsh_2dmap(), and xsh_flexcomp().
void xsh_create_map | ( | cpl_frame * | dispsol_frame, | |
cpl_frame * | ordertab_frame, | |||
cpl_frame * | pre_frame, | |||
xsh_instrument * | instrument, | |||
cpl_frame ** | wavemap_frame, | |||
cpl_frame ** | slitmap_frame, | |||
const char * | rec_prefix | |||
) |
Definition at line 77 of file xsh_create_wavemap.c.
References check, XSH_ASSURE_NOT_NULL, xsh_dispersol_list_free(), xsh_dispersol_list_load(), xsh_dispersol_list_to_slitmap(), xsh_dispersol_list_to_wavemap(), XSH_GET_TAG_FROM_ARM, xsh_pre_free(), xsh_pre_load(), XSH_SLIT_MAP_POLY, and XSH_WAVE_MAP_POLY.
Referenced by main(), xsh_check_get_map(), xsh_geom_ifu(), xsh_scired_ifu_offset(), xsh_scired_ifu_stare(), and xsh_slit_stare_get_maps().
void xsh_create_model_map | ( | cpl_frame * | model_frame, | |
xsh_instrument * | instrument, | |||
const char * | wtag, | |||
const char * | stag, | |||
cpl_frame ** | wavemap_frame, | |||
cpl_frame ** | slitmap_frame | |||
) |
Definition at line 126 of file xsh_create_wavemap.c.
References xsh_instrument::binx, xsh_instrument::biny, check, XSH_ASSURE_NOT_NULL, xsh_model_binxy(), xsh_model_config_load_best(), and xsh_model_maps_create().
Referenced by main(), xsh_2dmap(), xsh_check_get_map(), xsh_flexcomp(), xsh_geom_ifu(), xsh_scired_ifu_offset(), xsh_scired_ifu_stare(), xsh_slit_stare_get_maps(), xsh_util_physmod(), and xsh_wavecal().
cpl_frame* xsh_create_poly_wavemap | ( | cpl_frame * | pre_frame, | |
cpl_frame * | wave_tab_2d_frame, | |||
cpl_frame * | order_tab_frame, | |||
cpl_frame * | spectral_format_frame, | |||
xsh_dispersol_param * | dispsol_par, | |||
xsh_instrument * | instrument, | |||
const char * | wm_tag, | |||
cpl_frame ** | dispersol_frame, | |||
cpl_frame ** | slitmap_frame | |||
) |
Definition at line 195 of file xsh_create_wavemap.c.
References xsh_spectralformat::absorder, binx, biny, check, xsh_spectralformat::lambda_max_full, xsh_spectralformat::lambda_min_full, lambda_step, xsh_spectralformat_list::list, xsh_wavesol::max_lambda, xsh_wavesol::max_order, xsh_wavesol::max_slit, xsh_wavesol::min_lambda, xsh_wavesol::min_order, xsh_wavesol::min_slit, xsh_spectralformat_list::size, size, slit_step, x, xsh_add_temporary_file(), XSH_ASSURE_NOT_ILLEGAL_MSG, XSH_ASSURE_NOT_NULL, xsh_debug_level_get(), XSH_DEBUG_LEVEL_MEDIUM, XSH_FREE, XSH_GET_TAG_FROM_ARM, xsh_instrument_get_binx(), xsh_instrument_get_biny(), XSH_MALLOC, xsh_msg, xsh_msg_dbg_medium, xsh_pre_free(), xsh_pre_load(), XSH_SLIT_MAP_POLY, xsh_spectralformat_list_free(), xsh_spectralformat_list_load(), xsh_wavemap_list_compute(), xsh_wavemap_list_compute_poly(), xsh_wavemap_list_create(), xsh_wavemap_list_free(), xsh_wavemap_list_save_poly(), xsh_wavesol_eval_polx(), xsh_wavesol_eval_poly(), xsh_wavesol_free(), xsh_wavesol_load(), xsh_wavesol_set_bin_x(), xsh_wavesol_set_bin_y(), and y.
Referenced by xsh_2dmap(), and xsh_flexcomp().
cpl_error_code xsh_wavemap_qc | ( | cpl_frame * | frm_map, | |
const cpl_frame * | frm_tab | |||
) |
Monitor Flux level along the orders traces given by an input table.
frm_map | The input frame image whose flux is to be monitored | |
frm_tab | input frame table with order traces |
Definition at line 552 of file xsh_create_wavemap.c.
References check, XSH_ASSURE_NOT_NULL, xsh_free_image(), xsh_free_propertylist(), xsh_free_table(), XSH_QC_WMAP_WAVEC, and xsh_update_pheader_in_image_multi().
Referenced by xsh_2dmap().
cpl_error_code xsh_wavetab_qc | ( | cpl_frame * | frm_tab, | |
const int | is_poly | |||
) |
Monitor min/max/med/avg distance between detected lines on each ordee.
frm_tab | input frame table with order traces | |
is_poly | data reduction method |
Definition at line 630 of file xsh_create_wavemap.c.
References check, XSH_ASSURE_NOT_NULL, xsh_free_propertylist(), xsh_free_table(), xsh_free_vector(), xsh_msg_warning, XSH_QC_LINE_DIFAVG, XSH_QC_LINE_DIFAVG_C, XSH_QC_LINE_DIFMAX, XSH_QC_LINE_DIFMAX_C, XSH_QC_LINE_DIFMAX_ORD, XSH_QC_LINE_DIFMED, XSH_QC_LINE_DIFMED_C, XSH_QC_LINE_DIFMIN, XSH_QC_LINE_DIFMIN_C, and XSH_QC_LINE_DIFMIN_ORD.
Referenced by xsh_2dmap(), and xsh_predict().