Defines | |
#define | MAXSTRINGLENGTH 1024 |
#define | xsh_msg_dbg_high(...) |
#define | xsh_msg_dbg_medium(...) |
#define | xsh_msg_dbg_low(...) |
#define | xsh_msg_error(...) cpl_msg_error(__func__, __VA_ARGS__) |
Print an error message. | |
#define | xsh_msg_progress(i, iter,...) |
Print a progress message. | |
#define | xsh_msg_warning(...) xsh_msg_warning_macro(__func__, __VA_ARGS__) |
Print an warning message. | |
#define | xsh_msg_debug(...) cpl_msg_debug(__func__, __VA_ARGS__) |
Print a debug message. | |
#define | xsh_msg_indented(...) |
Print an indented message. | |
#define | xsh_msg(...) cpl_msg_info("", __VA_ARGS__) |
Print a message on info level. | |
Functions | |
void | xsh_msg_init (void) |
Initialize messaging. | |
int | xsh_msg_get_warnings (void) |
Get number of warnings printed so far. | |
void | xsh_msg_warning_macro (const char *fct, const char *format,...) |
Print a warning message. | |
Variables | |
static int | number_of_warnings = 0 |
This module exists in order to save the user from typing the function name when calling a CPL message function (by using the ANSI-C99 __func__ identifier).
Also, a record is kept on the number of warnings printed using xsh_msg_warning()
.
These messaging functions never set the CPL error code.
#define xsh_msg | ( | ... | ) | cpl_msg_info("", __VA_ARGS__) |
Print a message on info level.
... | Message to print |
See also xsh_msg_macro()
.
Definition at line 121 of file xsh_msg.h.
Referenced by add_noisy_pixels(), analyse_extraction(), analyse_localization(), analyse_merge_ord(), clean_arclist_data(), compare_img_3d(), compute_abs_order(), compute_dist_pixel(), compute_shift_with_kw(), compute_shift_with_localization(), compute_specres(), create_blaze(), create_frame(), create_resid_tab(), create_zero_rectify(), createFakeFrames(), data_wavesol_fit_with_sigma(), do_calib_spectrum(), fill_image(), find_maximum(), find_tilt(), fit_spline(), flag_noisy_pixels(), get_max_pos(), get_step_slit(), HandleOptions(), init_interpolate(), main(), make_data_cube(), shift_with_kw(), shift_with_localization(), sof_to_frameset(), test_tech_eval_perf(), verifCr(), verify_noisy(), verify_order_table(), xsh_2dmap(), xsh_3_energy(), xsh_abs_remove_crh_single(), xsh_add_product_image(), xsh_afcthetab_create(), xsh_array_clip_mean(), xsh_array_clip_median(), xsh_array_clip_poly1d(), xsh_badpixelmap_coadd(), xsh_begin(), xsh_bpmap_collapse_bpmap_create(), xsh_build_ifu_cube(), xsh_calibrate_flux(), xsh_cfg_recover_extend_xy_pos_frm(), xsh_cfg_recover_gen_xyg(), xsh_cfg_recover_guess_tab_corr_by_ordpos(), xsh_cfg_recover_last_step(), xsh_cfg_recover_linear_ext(), xsh_cfg_recover_measure_line_xy(), xsh_cfg_recover_measure_line_xy_fit(), xsh_cfg_recover_measure_tab_xy_peaks(), xsh_cfg_recover_pattern_match(), xsh_cfg_recover_prepare_pm_set(), xsh_cfg_recover_select_peaks(), xsh_check_divide_flat(), xsh_check_get_map(), xsh_check_load_master_bpmap(), xsh_check_remove_crh_multiple(), xsh_check_remove_crh_single(), xsh_check_subtract_bias(), xsh_check_subtract_dark(), xsh_check_subtract_sky_single(), xsh_column_to_double(), xsh_combine_nod(), xsh_compute_flat_edges(), xsh_compute_fpn_mbias(), xsh_compute_linearity(), xsh_compute_noise_map(), xsh_compute_response(), xsh_compute_response_ord(), xsh_compute_slice_dist(), xsh_create_dispersol_physmod(), xsh_create_master_bias(), xsh_create_master_bias2(), xsh_create_master_flat(), xsh_create_order_table(), xsh_create_poly_wavemap(), xsh_detect_arclines(), xsh_detect_continuum(), xsh_detect_edges(), xsh_detect_order_edge(), xsh_dfs_set_groups(), xsh_dump_arclist(), xsh_dump_the_map(), xsh_efficiency_compute(), xsh_end(), xsh_ensure_raws_input_offset_recipe_is_proper(), xsh_extract_ifu(), xsh_extract_nod_pairs(), xsh_extract_obj_and_sky_pairs(), xsh_extract_with_tag(), xsh_find_disp_tab(), xsh_find_wave_tab_ifu(), xsh_flexcomp(), xsh_flexcor(), xsh_follow_arclines(), xsh_follow_arclines_ifu(), xsh_format(), xsh_frame_divide_flat(), xsh_frame_image_ext_qc_trace_window(), xsh_frameset_dump(), xsh_frameset_dump_nod_info(), xsh_frameset_extract_offsety_mismatches(), xsh_gain(), xsh_geom_ifu(), xsh_get_offsety(), xsh_get_slit_edges(), xsh_gfit_tests(), xsh_grid_dump(), xsh_ifu_trace_object_calibrate(), xsh_image_3d_load(), xsh_image_3d_write_fits_header(), xsh_image_coadd(), xsh_image_divide_1D(), xsh_image_fit_spline(), xsh_image_gaussian_fit_y(), xsh_image_get_hot_cold_pixs(), xsh_instrument_update_from_spectralformat(), xsh_interpolate_high_abs_regions(), xsh_interpolate_spectrum(), xsh_linear(), xsh_linear_group_by_exptime(), xsh_lingain(), xsh_load_ref_table(), xsh_localize_obj_ifu(), xsh_mbias(), xsh_mdark(), xsh_merge_ord(), xsh_merge_ord_ifu(), xsh_mflat(), xsh_mflat_recipe_main(), xsh_model_anneal_reduce(), xsh_model_first_anneal(), xsh_model_io_dump(), xsh_model_maps_create(), xsh_model_pipe_anneal(), xsh_model_readfits(), xsh_model_reduce(), xsh_model_spectralformat_create(), xsh_model_temperature_update_frame(), xsh_model_THE_create(), xsh_nod_group_by_reloff(), xsh_opt_extract_orders(), xsh_optextract_produce_model(), xsh_order_edge_list_fit(), xsh_order_frameset_by_date(), xsh_order_list_fit(), xsh_order_list_save(), xsh_order_table_from_fmtchk(), xsh_orderpos(), xsh_paf_save(), xsh_parameters_debug_level_get(), xsh_parameters_get_temporary(), xsh_params_bin_scale(), xsh_parse_catalog_std_stars(), xsh_pfits_get_slit_value(), xsh_pfits_get_slit_width(), xsh_pfits_set_qc(), xsh_pfits_set_qc_multi(), xsh_pre_3d_load(), xsh_pre_create(), xsh_pre_init(), xsh_pre_normalize(), xsh_predict(), xsh_preoverscan_corr(), xsh_print_cpl_frame(), xsh_print_cpl_frameset(), xsh_print_cpl_property(), xsh_print_cpl_propertylist(), xsh_rec_slit_size(), xsh_rectify_and_shift(), xsh_rectify_orders(), xsh_rectify_orders_ifu(), xsh_remove_cosmics(), xsh_remove_cr(), xsh_resid_order_2tab(), xsh_resid_tab_load(), xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_respon_slit_stare(), xsh_scired_ifu_offset(), xsh_scired_ifu_stare(), xsh_scired_slit_nod(), xsh_scired_slit_nod_accurate(), xsh_scired_slit_nod_fast(), xsh_scired_slit_nod_get_calibs(), xsh_scired_slit_offset(), xsh_scired_slit_stare(), xsh_shift_rectified(), xsh_show_time(), xsh_slit_offset_get_params(), xsh_slit_stare_correct_crh_and_sky(), xsh_slit_stare_get_calibs(), xsh_slit_stare_get_maps(), xsh_spectrum_resample(), xsh_subtract_background(), xsh_subtract_on_off(), xsh_subtract_sky_offset(), xsh_subtract_sky_single(), xsh_test_create_bias_image(), xsh_util_afc(), xsh_util_apply_response(), xsh_util_bpmap_coadd(), xsh_util_bpmap_nl_raw2pre(), xsh_util_compute_response(), xsh_util_crh_single(), xsh_util_efficiency(), xsh_util_efficiency1d(), xsh_util_efficiency2d(), xsh_util_guess_xy(), xsh_util_ifu_build_cube(), xsh_util_ima_arith(), xsh_util_ima_getextno(), xsh_util_ima_oversample(), xsh_util_ima_rebin(), xsh_util_ima_shift(), xsh_util_ima_subsample(), xsh_util_integrate(), xsh_util_multiply_by_response(), xsh_util_multiply_by_response_ord(), xsh_util_physmod_model_THE_create(), xsh_util_ronbias(), xsh_vector_integrate(), xsh_wavecal(), xsh_wavemap_list_build_sky(), xsh_wavemap_list_compute(), xsh_wavemap_list_compute_poly(), xsh_wavemap_list_new(), xsh_wavemap_list_save(), xsh_wavemap_list_save2(), and xsh_wavesol_dump().
#define xsh_msg_dbg_high | ( | ... | ) |
{ \ if (xsh_debug_level_get() >= XSH_DEBUG_LEVEL_HIGH)\ cpl_msg_debug(__func__, __VA_ARGS__) ; \ }
Definition at line 40 of file xsh_msg.h.
Referenced by adjust_lambdas(), chunk_coadd(), compute_shift_with_kw(), compute_specres(), create_rectify_nod_list(), data_wavesol_fit_with_sigma(), detect_centroid(), fill_img(), find_lambda_idx_limit(), find_maximum(), get_lambda(), shift_with_localization(), xsh_create_master_dark(), xsh_create_order_table(), xsh_detect_arclines(), xsh_detect_continuum(), xsh_detect_order_edge(), xsh_extract_with_tag(), xsh_find_frame_with_tag(), xsh_fit_gaussian(), xsh_get_tag_from_arm(), xsh_image_3d_insert(), xsh_image_3d_new(), xsh_image_3d_save(), xsh_image_fit_gaussian_max_pos_x_window(), xsh_image_fit_gaussian_max_pos_y_window(), xsh_is_qc_for_pro_catg(), xsh_merge_ord_with_tag(), xsh_model_config_load_best(), xsh_opt_extract_orders(), xsh_order_list_fit(), xsh_order_list_save(), xsh_order_table_from_fmtchk(), xsh_pfits_get_nod_cumoffset(), xsh_pfits_get_nod_reloffset(), xsh_pfits_set_qc_multi(), xsh_pre_window_best_median_flux_pos(), xsh_rec_list_add(), xsh_rec_list_free(), xsh_rec_list_rectify(), xsh_rec_list_save2(), xsh_rec_list_set_data_size(), xsh_rectify_orders(), xsh_remove_cosmics(), xsh_remove_cr(), xsh_remove_crh_single(), xsh_resid_order_save(), xsh_scired_slit_nod_accurate(), xsh_scired_slit_nod_fast(), xsh_spectralformat_list_get_orders(), xsh_subtract_background(), xsh_subtract_sky_offset(), xsh_vector_integrate(), xsh_wavemap_lambda_range(), xsh_wavemap_list_compute(), xsh_wavemap_list_compute_poly(), xsh_wavemap_list_eval_lambda(), xsh_wavemap_list_free(), xsh_wavemap_list_save(), xsh_wavemap_list_save2(), xsh_wavesol_add_poly(), xsh_wavesol_create(), and xsh_wavesol_load().
#define xsh_msg_dbg_low | ( | ... | ) |
{ \ if (xsh_debug_level_get() >= XSH_DEBUG_LEVEL_LOW)\ cpl_msg_debug(__func__, __VA_ARGS__) ; \ }
Definition at line 48 of file xsh_msg.h.
Referenced by clean_arclist_data(), cumulate_qc_parameter(), detect_centroid(), do_compute(), fill_rectified(), find_lambda_idx_limit(), flag_noisy_pixels(), irplib_paf_dump(), lambda_fit(), set_qc_parameters(), shift_with_localization(), xsh_2dmap(), xsh_add_product(), xsh_add_product_bpmap(), xsh_add_product_imagelist(), xsh_bpmap_collapse_bpmap_create(), xsh_check_remove_crh_multiple(), xsh_compute_linearity(), xsh_detect_continuum(), xsh_follow_arclines(), xsh_image_3d_new(), xsh_image_3d_save(), xsh_image_get_hot_cold_maps(), xsh_instrument_update_from_spectralformat(), xsh_linear_group_by_exptime(), xsh_localize_obj(), xsh_localize_obj_auto(), xsh_mdark(), xsh_model_maps_create(), xsh_opt_extract_orders(), xsh_order_edge_list_fit(), xsh_order_list_fit(), xsh_orderpos(), xsh_paf_save(), xsh_params_monitor(), xsh_pre_create(), xsh_print_cpl_frame(), xsh_rec_list_load(), xsh_rec_list_load_eso(), xsh_remove_cr(), xsh_remove_crh_single(), xsh_resid_order_create(), xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_respon_slit_stare(), xsh_response_calculate(), xsh_scired_nod_params_monitor(), xsh_scired_slit_nod(), xsh_scired_slit_offset(), xsh_scired_slit_stare(), xsh_star_flux_list_save(), xsh_star_flux_list_save_order(), xsh_subtract_background(), xsh_subtract_on_off(), xsh_subtract_sky_single(), xsh_wavecal(), xsh_wavemap_list_save(), and xsh_wavemap_list_save2().
#define xsh_msg_dbg_medium | ( | ... | ) |
{ \ if (xsh_debug_level_get() >= XSH_DEBUG_LEVEL_MEDIUM)\ cpl_msg_debug(__func__, __VA_ARGS__) ; \ }
Definition at line 44 of file xsh_msg.h.
Referenced by add_qc_crh(), chunk_coadd(), clean_arclist_data(), compute_shift_with_localization(), concat_rec(), create_blaze(), cumulate_qc_parameter(), detect_centroid(), do_compute(), find_tilt(), fit_spline(), flag_noisy_pixels(), lambda_fit(), shift_with_localization(), theo_tab_filter(), xsh_array_clip_mean(), xsh_array_clip_poly1d(), xsh_background_poly(), xsh_compute_flat_edges(), xsh_create_dispersol_physmod(), xsh_create_order_table(), xsh_create_poly_wavemap(), xsh_detect_arclines(), xsh_detect_continuum(), xsh_detect_edges(), xsh_detect_order_edge(), xsh_dfs_split_offset(), xsh_efficiency_compute(), xsh_extract_ifu(), xsh_extract_with_tag(), xsh_find_order_tab_edges(), xsh_fit_gaussian(), xsh_flat_merge_qth_d2(), xsh_follow_arclines_ifu(), xsh_get_offsets(), xsh_image_extract_optimal(), xsh_image_filter_wrapper(), xsh_image_gaussian_fit_y(), xsh_interpolate_high_abs_regions(), xsh_interpolate_linear(), xsh_localize_obj(), xsh_localize_obj_auto(), xsh_localize_obj_manual(), xsh_mdark(), xsh_merge_ord_with_tag(), xsh_model_pipe_anneal(), xsh_normalize_spectrum(), xsh_normalize_spectrum_image(), xsh_normalize_spectrum_ord(), xsh_order_list_load(), xsh_pre_create(), xsh_prepare(), xsh_rec_list_add(), xsh_rec_list_load(), xsh_rec_list_load_eso(), xsh_rectify_orders(), xsh_remove_cosmics(), xsh_remove_crh_single(), xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_respon_slit_stare(), xsh_response_calculate(), xsh_spectrum_interpolate(), xsh_subtract_sky_single(), xsh_the_map_load(), xsh_tools_tchebitchev_transform(), xsh_update_pheader_in_image_multi(), xsh_util_multiply_by_response(), xsh_util_multiply_by_response_ord(), xsh_utils_efficiency_internal(), xsh_wavelist_subtract_sky(), xsh_wavemap_lambda_range(), and xsh_wavemap_list_new().
#define xsh_msg_debug | ( | ... | ) | cpl_msg_debug(__func__, __VA_ARGS__) |
Print a debug message.
... | Message to print |
This function is used instead of cpl_msg_debug()
, and saves the user from typing the calling function name.
Definition at line 99 of file xsh_msg.h.
Referenced by fit_spline(), xsh_baryvel(), xsh_build_ifu_cube(), xsh_cfg_recover_guess_tab_corr_by_ordpos(), xsh_find_calpro_model_config(), xsh_find_model_config_open(), xsh_paf_save(), xsh_polynomial_convert_from_table(), and xsh_polynomial_regression_2d().
#define xsh_msg_error | ( | ... | ) | cpl_msg_error(__func__, __VA_ARGS__) |
Print an error message.
... | Message to print |
This function is used instead of cpl_msg_error()
, and saves the user from typing the calling function name.
Definition at line 62 of file xsh_msg.h.
Referenced by xsh_2dmap(), xsh_add_product(), xsh_cfg_recover_extend_xy_pos_frm(), xsh_cfg_recover_gen_xyg_frame(), xsh_cfg_recover_guess_tab_corr_by_ordpos(), xsh_cfg_recover_last_step(), xsh_cfg_recover_measure_line_xy(), xsh_cfg_recover_measure_line_xy_fit(), xsh_cfg_recover_model_THE_create(), xsh_cfg_recover_prepare_pm_set(), xsh_check_input_is_unbinned(), xsh_clean_mean(), xsh_detect_order_edge(), xsh_dfs_set_groups(), xsh_dfs_split_in_group(), xsh_dfs_split_nir(), xsh_dfs_split_offset(), xsh_dfs_split_qth_d2(), xsh_efficiency_compute(), xsh_flexcomp(), xsh_follow_arclines(), xsh_frame_check_is_right_afcatt(), xsh_frame_check_model_cfg_is_afc_corrected(), xsh_frame_check_model_cfg_is_proper_for_sci(), xsh_frame_force_pro_catg(), xsh_gain(), xsh_gen_lowpass(), xsh_generate_interpolation_kernel(), xsh_geom_ifu(), xsh_image_3d_insert(), xsh_image_filter_mode(), xsh_image_search_bad_pixels_via_noise(), xsh_image_stats_on_rectangle(), xsh_image_to_vector(), xsh_load_table_check(), xsh_mbias(), xsh_mdark(), xsh_merge_ord_slitlet(), xsh_model_first_anneal(), xsh_parameter_get_default_flag(), xsh_parameters_create_from_drs_table(), xsh_pixel_qsort(), xsh_preoverscan_corr(), xsh_print_rec_status(), xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_respon_slit_stare(), xsh_scired_ifu_stare(), xsh_scired_slit_nod_get_calibs(), xsh_scired_slit_offset(), xsh_scired_slit_stare(), xsh_set_cd_matrix(), xsh_slit_stare_get_calibs(), xsh_util_apply_response(), xsh_util_bpmap_coadd(), xsh_util_compute_response(), xsh_util_crh_single(), xsh_util_efficiency1d(), xsh_util_ima_arith(), xsh_util_ima_shift(), xsh_util_model_SPF_create(), xsh_util_physmod_model_THE_create(), xsh_verify_2dmap_poly_input(), and xsh_warp_image_generic().
#define xsh_msg_indented | ( | ... | ) |
#define xsh_msg_progress | ( | i, | |||
iter, | |||||
... | ) |
cpl_msg_progress(__func__, (i), (iter),\ __VA_ARGS__)
Print a progress message.
i | See cpl_msg_progress() | |
iter | See cpl_msg_progress() | |
... | Message to print |
This function is used instead of cpl_msg_progress()
, and saves the user from typing the calling function name.
#define xsh_msg_warning | ( | ... | ) | xsh_msg_warning_macro(__func__, __VA_ARGS__) |
Print an warning message.
... | Message to print |
This function is used instead of cpl_msg_warning()
, and saves the user from typing the calling function name.
Additionally the number of warnings printed so far is
Definition at line 88 of file xsh_msg.h.
Referenced by get_masterbias_qc_structure_col_region(), get_masterbias_qc_structure_row_region(), xsh_2dmap(), xsh_baryvel(), xsh_calibrate_flux(), xsh_cfg_recover_last_step(), xsh_cfg_recover_measure_line_xy(), xsh_detect_continuum(), xsh_dispersol_list_to_wavemap(), xsh_end(), xsh_ensure_raws_number_is_even(), xsh_find_frame(), xsh_find_wave_tab_ifu(), xsh_flexcomp(), xsh_frameset_dump_nod_info(), xsh_gain(), xsh_geom_ifu(), xsh_get_slit_edges(), xsh_localize_obj_auto(), xsh_mdark(), xsh_merge_ord_with_tag(), xsh_mflat(), xsh_model_first_anneal(), xsh_model_temperature_update_frame(), xsh_opt_extract_orders(), xsh_orderpos(), xsh_parameters_dosky_domap_get(), xsh_pre_data_window_median_flux_pa(), xsh_pre_data_window_sample_flux_pa(), xsh_pre_init(), xsh_predict(), xsh_rec_slit_size(), xsh_scired_ifu_offset(), xsh_scired_ifu_stare(), xsh_set_recipe_file_prefix(), xsh_slit_stare_get_calibs(), xsh_spectralformat_check_wlimit(), xsh_util_bpmap_coadd(), xsh_validate_model_cfg(), xsh_wavecal(), and xsh_wavetab_qc().
int xsh_msg_get_warnings | ( | void | ) |
Get number of warnings printed so far.
Referenced by xsh_end().
void xsh_msg_init | ( | void | ) |
Initialize messaging.
This function
Referenced by xsh_init().
void xsh_msg_warning_macro | ( | const char * | fct, | |
const char * | format, | |||
... | ||||
) |
Print a warning message.
fct | Identity of calling function | |
format | A printf()-like format string |
Don't call this function directly, use the macro xsh_msg_warning()
.
This function is used instead of cpl_msg_warning()
, and saves the user from typing the calling function name.
Additionally, record is kept on the total number of warnings printed (see xsh_msg_get_warnings()
).
int number_of_warnings = 0 [static] |