Xshooter error handling
[Error handling]

Defines

#define assure(CONDITION, ERROR_CODE,...)   irplib_error_assure(CONDITION, ERROR_CODE, (__VA_ARGS__), goto cleanup)
#define assure_nomsg(BOOL, CODE)   assure(BOOL, CODE, " ")
#define check_msg(COMMAND,...)
#define check(COMMAND)   check_msg(COMMAND, " ")
#define cknull_msg(NULLEXP,...)
#define cknull(NULLEXP)   cknull_msg(NULLEXP," ")
#define assure_mem(PTR)   assure((PTR) != NULL, CPL_ERROR_ILLEGAL_OUTPUT, "Memory allocation failure!")
#define passure(CONDITION,...)
#define xsh_error_reset()   xsh_irplib_error_reset()
#define xsh_error_dump(level)   irplib_error_dump(level, level)
#define xsh_error_msg(...)
#define XSH_ASSURE_NOT_NULL(pointer)
#define XSH_ASSURE_NOT_NULL_MSG(pointer, msg)
#define XSH_ASSURE_NOT_ILLEGAL(cond)
#define XSH_ASSURE_NOT_ILLEGAL_MSG(cond, msg)
#define XSH_ASSURE_NOT_MISMATCH(cond)
#define XSH_CMP_INT(A, OPERATOR, B, SUFFIX,...)
#define XSH_CHECK_COND(A, OPERATOR, B, SUFFIX,...)
#define XSH_CHECK_FRAMESET_SIZE(FRAMESET, OPERATOR, SIZE)
#define XSH_REGDEBUG(...)   xsh_msg_debug("<< REGDEBUG >> :" __VA_ARGS__)

Define Documentation

#define assure ( CONDITION,
ERROR_CODE,
...   )     irplib_error_assure(CONDITION, ERROR_CODE, (__VA_ARGS__), goto cleanup)

Definition at line 54 of file xsh_error.h.

Referenced by add_noisy_pixels(), calculate_qc_parameters(), create(), derivative_cpl_polynomial(), destroy(), exec(), flag_noisy_pixels(), main(), set_masterdark_qc(), subtract_background(), tests_set_defaults(), verifCr(), verify_noisy(), verify_order_table(), xsh_2dmap_create(), xsh_2dmap_destroy(), xsh_2dmap_exec(), xsh_add_product_pre(), xsh_add_product_pre_3d(), xsh_add_product_spectrum(), xsh_background_poly(), xsh_badpixelmap_coadd(), xsh_begin(), xsh_bpmap_collapse_bpmap_create(), xsh_bpmap_collapse_mean(), xsh_bpmap_collapse_median(), xsh_bpmap_count(), xsh_bpmap_mask_bad_pixel(), xsh_cfg_recover_create(), xsh_cfg_recover_destroy(), xsh_cfg_recover_exec(), xsh_collapse_errs(), xsh_compute_linearity(), xsh_create_master_bias2(), xsh_create_master_dark(), xsh_detect_continuum(), xsh_detect_order_edge(), xsh_dfs_find_flat(), xsh_dfs_set_groups(), xsh_dump_the_map(), xsh_ensure_raws_input_offset_recipe_is_proper(), xsh_erase_table_rows(), xsh_extract_nod_pairs(), xsh_extract_obj_and_sky_pairs(), xsh_find_frame(), xsh_fixed_pattern_noise(), xsh_fixed_pattern_noise_bias(), xsh_flexcomp_create(), xsh_flexcomp_destroy(), xsh_flexcomp_exec(), xsh_frameset_extract(), xsh_geom_ifu(), xsh_geom_ifu_create(), xsh_geom_ifu_destroy(), xsh_geom_ifu_exec(), xsh_get_property_value(), xsh_get_table_value(), xsh_image_compute_geom_corr(), xsh_image_crop(), xsh_image_get_stdev_clean(), xsh_image_get_stdev_robust(), xsh_instrument_get_config(), xsh_instrument_new(), xsh_instrument_set_arm(), xsh_instrument_set_lamp(), xsh_instrument_update_from_spectralformat(), xsh_linear(), xsh_linear_group_by_exptime(), xsh_lingain_create(), xsh_lingain_destroy(), xsh_lingain_exec(), xsh_mbias_create(), xsh_mbias_destroy(), xsh_mbias_exec(), xsh_mdark_create(), xsh_mdark_destroy(), xsh_mdark_exec(), xsh_mflat_create(), xsh_mflat_destroy(), xsh_mflat_exec(), xsh_model_anneal_create(), xsh_model_first_anneal_create(), xsh_normalize_spectrum_image(), xsh_orderpos_create(), xsh_orderpos_destroy(), xsh_orderpos_exec(), xsh_parameters_background_create(), xsh_parameters_clipping_crh_create(), xsh_parameters_clipping_crh_get(), xsh_parameters_clipping_noise_create(), xsh_parameters_clipping_noise_get(), xsh_parameters_clipping_specres_get(), xsh_parameters_clipping_tilt_get(), xsh_parameters_combine_nod_create(), xsh_parameters_combine_nod_get(), xsh_parameters_compute_response_create(), xsh_parameters_compute_response_get(), xsh_parameters_detect_order_create(), xsh_parameters_get_boolean(), xsh_parameters_get_double(), xsh_parameters_get_int(), xsh_parameters_hot_cold_pix_create(), xsh_parameters_new_bool(), xsh_parameters_new_double(), xsh_parameters_new_float(), xsh_parameters_new_int(), xsh_parameters_new_range_double(), xsh_parameters_new_range_int(), xsh_parameters_new_string(), xsh_parameters_optimal_extract_get_kappa(), xsh_parameters_rectify_fast_get(), xsh_parameters_rectify_get(), xsh_parameters_subtract_sky_single_get_first(), xsh_parameters_wavecal_margin_create(), xsh_parameters_wavecal_margin_get(), xsh_parameters_wavecal_range_create(), xsh_parameters_wavecal_range_get(), xsh_parameters_wavecal_s_n_create(), xsh_parameters_wavecal_s_n_get(), xsh_polynomial_add_2d(), xsh_polynomial_collapse(), xsh_polynomial_convert_from_table(), xsh_polynomial_convert_to_table(), xsh_polynomial_derivative(), xsh_polynomial_derivative_1d(), xsh_polynomial_derivative_2d(), xsh_polynomial_duplicate(), xsh_polynomial_evaluate_1d(), xsh_polynomial_evaluate_2d(), xsh_polynomial_fit_1d(), xsh_polynomial_fit_2d(), xsh_polynomial_get_coeff_1d(), xsh_polynomial_get_coeff_2d(), xsh_polynomial_get_degree(), xsh_polynomial_get_dimension(), xsh_polynomial_new(), xsh_polynomial_new_zero(), xsh_polynomial_regression_2d(), xsh_polynomial_rescale(), xsh_polynomial_shift(), xsh_polynomial_solve_1d(), xsh_polynomial_solve_2d(), xsh_pre_3d_new(), xsh_pre_add(), xsh_pre_create(), xsh_pre_divide(), xsh_pre_duplicate(), xsh_pre_get_pszx(), xsh_pre_load(), xsh_pre_median_mean_stdev(), xsh_pre_median_mean_stdev_window(), xsh_pre_multiply(), xsh_pre_new(), xsh_pre_subtract(), xsh_predict_create(), xsh_predict_destroy(), xsh_predict_exec(), xsh_print_cpl_propertylist(), xsh_remove_cosmics(), xsh_remove_cr(), xsh_respon_slit_nod(), xsh_respon_slit_nod_create(), xsh_respon_slit_nod_destroy(), xsh_respon_slit_nod_exec(), xsh_respon_slit_offset(), xsh_respon_slit_offset_create(), xsh_respon_slit_offset_destroy(), xsh_respon_slit_offset_exec(), xsh_respon_slit_stare(), xsh_respon_slit_stare_create(), xsh_respon_slit_stare_destroy(), xsh_respon_slit_stare_exec(), xsh_scired_ifu_offset(), xsh_scired_ifu_offset_create(), xsh_scired_ifu_offset_destroy(), xsh_scired_ifu_offset_exec(), xsh_scired_ifu_stare(), xsh_scired_ifu_stare_create(), xsh_scired_ifu_stare_destroy(), xsh_scired_ifu_stare_exec(), xsh_scired_slit_nod(), xsh_scired_slit_nod_create(), xsh_scired_slit_nod_destroy(), xsh_scired_slit_nod_exec(), xsh_scired_slit_offset(), xsh_scired_slit_offset_create(), xsh_scired_slit_offset_destroy(), xsh_scired_slit_offset_exec(), xsh_scired_slit_stare_create(), xsh_scired_slit_stare_destroy(), xsh_scired_slit_stare_exec(), xsh_select_table_rows(), xsh_set_image_cpl_bpmap(), xsh_sort_table_1(), xsh_sort_table_2(), xsh_stringcat(), xsh_stringcat_3(), xsh_stringcat_4(), xsh_stringcat_5(), xsh_stringcat_6(), xsh_stringcat_any(), xsh_stringdup(), xsh_subtract_dark(), xsh_subtract_on_off(), xsh_the_map_load(), xsh_util_bpmap_coadd_create(), xsh_util_ifu_build_cube(), xsh_util_ifu_build_cube_create(), xsh_util_ifu_build_cube_destroy(), xsh_util_ifu_build_cube_exec(), xsh_vector_to_image(), xsh_wavecal_create(), xsh_wavecal_destroy(), and xsh_wavecal_exec().

#define assure_mem ( PTR   )     assure((PTR) != NULL, CPL_ERROR_ILLEGAL_OUTPUT, "Memory allocation failure!")
#define assure_nomsg ( BOOL,
CODE   )     assure(BOOL, CODE, " ")

Condition

Definition at line 58 of file xsh_error.h.

Referenced by xsh_polynomial_fit_1d().

#define check ( COMMAND   )     check_msg(COMMAND, " ")

Definition at line 71 of file xsh_error.h.

Referenced by add_qc_crh(), analyse_extraction(), analyse_localization(), analyse_merge_ord(), analyse_rectify(), calculate_qc_parameters(), clean_arclist_data(), compute_abs_order(), compute_shift_with_kw(), compute_shift_with_localization(), compute_specres(), concat_rec(), create(), create_blaze(), create_frame(), create_order_image(), create_rectify_nod_list(), create_resid_tab(), create_zero_rectify(), data_wavesol_fit_with_sigma(), detect_centroid(), do_calib_spectrum(), do_compute(), fill_image(), fill_img(), fill_rectified(), find_tilt(), fit_spline(), get_masterbias_qc_structure_col_region(), get_masterbias_qc_structure_row_region(), lambda_fit(), lines_filter_by_sn(), main(), make_data_cube(), save_pre_frame(), set_masterbias_qc_structure(), set_masterbias_qc_structure_region(), set_masterbias_qc_uves_structure_region(), set_masterdark_qc(), set_qc_parameters(), shift_with_kw(), shift_with_localization(), sof_to_frameset(), star_index_add(), star_index_create(), star_index_get(), star_index_load(), star_index_remove_by_name(), star_index_save(), test_tech_eval_perf(), theo_tab_filter(), theo_tab_model(), verify_order_table(), xsh_2dmap(), xsh_2dmap_create(), xsh_abs_remove_crh_single(), xsh_add_product(), xsh_add_product_bpmap(), xsh_add_product_image(), xsh_add_product_imagelist(), xsh_add_product_pre(), xsh_add_product_pre_3d(), xsh_add_product_spectrum(), xsh_add_product_table(), xsh_add_product_table_multi(), xsh_add_sky_model(), xsh_afcthetab_create(), xsh_arclist_clean_from_list(), xsh_arclist_load(), xsh_arclist_save(), xsh_array_clip_mean(), xsh_array_clip_median(), xsh_array_clip_poly1d(), xsh_atmos_ext_list_free(), xsh_atmos_ext_list_load(), xsh_background_poly(), xsh_badpixelmap_coadd(), xsh_badpixelmap_or(), xsh_begin(), xsh_bpmap_bitwise_to_flag(), xsh_bpmap_collapse_mean(), xsh_bpmap_collapse_median(), xsh_bpmap_mask_bad_pixel(), xsh_build_ifu_cube(), xsh_calibrate_flux(), xsh_catalog_extract_spectrum_frame(), xsh_cfg_recover_add_peaks_xpos(), xsh_cfg_recover_create(), xsh_cfg_recover_driver(), xsh_cfg_recover_exec(), xsh_cfg_recover_extend_xy_pos_frm(), xsh_cfg_recover_gen_xyg(), xsh_cfg_recover_gen_xyg_frame(), xsh_cfg_recover_guess_tab_corr_by_ordpos(), xsh_cfg_recover_guess_tab_corr_by_user(), 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_model_THE_create(), xsh_cfg_recover_pattern_match(), xsh_cfg_recover_prepare_pm_set(), xsh_cfg_recover_remove_blends(), xsh_cfg_recover_select_peaks(), xsh_check_divide_flat(), xsh_check_get_map(), xsh_check_remove_crh_multiple(), xsh_check_remove_crh_single(), xsh_check_subtract_bias(), xsh_check_subtract_dark(), xsh_check_subtract_sky_single(), xsh_collapse_errs(), xsh_column_to_double(), xsh_combine_nod(), xsh_combine_offset(), xsh_compute_flat_edges(), xsh_compute_fpn_mbias(), xsh_compute_linearity(), xsh_compute_noise_map(), xsh_compute_response(), xsh_compute_response_ord(), xsh_compute_ron(), xsh_compute_ron_mbias(), xsh_compute_slice_dist(), xsh_compute_slit_index(), xsh_create_column_double(), xsh_create_dispersol_physmod(), xsh_create_map(), xsh_create_master_bias(), xsh_create_master_bias2(), xsh_create_master_bpmap(), xsh_create_master_dark(), xsh_create_master_flat(), xsh_create_model_map(), xsh_create_order_table(), xsh_create_poly_wavemap(), xsh_cube_qc_trace_window(), xsh_data_check_spectralformat(), xsh_detect_arclines(), xsh_detect_continuum(), xsh_detect_edges(), xsh_detect_max_y(), xsh_detect_order_edge(), xsh_dfs_filter(), xsh_dfs_set_groups(), xsh_dfs_split_nir(), xsh_dfs_split_offset(), xsh_dfs_split_qth_d2(), xsh_dispersol_list_eval(), xsh_dispersol_list_load(), xsh_dispersol_list_new(), xsh_dispersol_list_save(), xsh_dispersol_list_to_slitmap(), xsh_dispersol_list_to_wavemap(), xsh_divide_flat(), xsh_efficiency_compute(), xsh_ensure_raws_input_offset_recipe_is_proper(), xsh_ensure_raws_number_is_even(), xsh_eval_y_avg_chunk(), xsh_extract(), xsh_extract_ifu(), xsh_extract_nod_pairs(), xsh_extract_obj_and_sky_pairs(), xsh_extract_with_tag(), xsh_fill_high_abs_regions(), xsh_find_arc_line_list(), xsh_find_arc_line_list_clean(), xsh_find_calpro_model_config(), xsh_find_calpro_model_meas_coord(), xsh_find_disp_tab(), xsh_find_frame(), xsh_find_master_bias(), xsh_find_model_config(), xsh_find_model_config_open(), xsh_find_model_config_tab(), xsh_find_model_testpar(), xsh_find_model_wavelist(), xsh_find_order_tab_centr(), xsh_find_order_tab_edges(), xsh_find_order_tab_guess(), xsh_find_order_tab_recov(), xsh_find_raw_arc_slit_nir_off(), xsh_find_raw_arc_slit_nir_on(), xsh_find_raw_arc_slit_uvb_vis(), xsh_find_raw_orderdef_nir(), xsh_find_raw_orderdef_nir_off(), xsh_find_raw_orderdef_vis_uvb(), xsh_find_slitmap(), xsh_find_spectral_format(), xsh_find_theo_tab_mode(), xsh_find_theo_tab_mult(), xsh_find_theo_tab_sing(), xsh_find_usr_lines_guess_tab(), xsh_find_wave_tab(), xsh_find_wave_tab_2d(), xsh_find_wave_tab_guess(), xsh_find_wave_tab_ifu(), xsh_find_wavemap(), xsh_fit_gaussian(), xsh_fit_imagelist_is_zero_macro(), xsh_flat_merge_qth_d2(), xsh_flexcomp(), xsh_flexcomp_create(), xsh_flexcor(), xsh_flux_calibrate(), xsh_follow_arclines(), xsh_follow_arclines_ifu(), xsh_follow_arclines_slit(), xsh_format(), xsh_frame_abs(), 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_config(), xsh_frame_divide_flat(), xsh_frame_force_pro_catg(), xsh_frame_has_same_nod_pos(), xsh_frame_image_ext_qc_trace_window(), xsh_frame_image_qc_trace_window(), xsh_frame_inv(), xsh_frame_mult(), xsh_frame_product(), xsh_frame_sci_get_gain_airmass_exptime_naxis1_biny(), xsh_frame_sci_get_ra_dec_airmass(), xsh_frame_table_monitor_flux_qc(), xsh_frame_table_monitor_flux_qc_ext(), xsh_frame_table_save(), xsh_frameset_add(), xsh_frameset_average(), xsh_frameset_average_pre(), xsh_frameset_drl_frames(), xsh_frameset_ext_image_frames(), xsh_frameset_ext_table_frames(), xsh_frameset_extract_pre(), xsh_frameset_merge(), xsh_gain(), xsh_geom_ifu(), xsh_geom_ifu_create(), xsh_get_binning(), xsh_get_exptimes(), xsh_get_offsets(), xsh_get_slit_edges(), xsh_gfit_tests(), xsh_ifu_trace_object_calibrate(), xsh_ifu_wavetab_create(), xsh_image_3d_insert(), xsh_image_3d_load(), xsh_image_3d_new(), xsh_image_3d_save(), xsh_image_clean_badpixel(), xsh_image_clean_mask_pixs(), xsh_image_coadd(), xsh_image_compute_geom_corr(), xsh_image_create_gaussian_image(), xsh_image_create_model_image(), xsh_image_crop(), xsh_image_divide_1D(), xsh_image_extract_optimal(), xsh_image_extract_standard(), xsh_image_filter_mode(), xsh_image_fit_gaussian_max_pos_x_window(), xsh_image_fit_gaussian_max_pos_y_window(), xsh_image_fit_spline(), xsh_image_flag_bptype_with_crox(), xsh_image_gaussian_fit_y(), xsh_image_get_hot_cold_maps(), xsh_image_get_hot_cold_pixs(), xsh_image_local_cold_pixs(), xsh_image_local_hot_pixs(), xsh_image_mflat_detect_blemishes(), xsh_image_mflat_detect_hotcold(), xsh_image_mult_1D(), xsh_image_qc_trace_window(), xsh_image_smooth_fft(), xsh_image_smooth_mean_x(), xsh_image_smooth_mean_y(), xsh_image_smooth_median_x(), xsh_image_smooth_median_xy(), xsh_image_smooth_median_y(), xsh_imagelist_collapse_sigclip_iter_create(), xsh_iml_merge_avg(), xsh_instrument_duplicate(), xsh_instrument_update_from_spectralformat(), xsh_interpolate_spectrum(), xsh_linear(), xsh_linear_group_by_exptime(), xsh_linetilt_list_get_deltay(), xsh_linetilt_list_get_orders(), xsh_linetilt_list_get_posx(), xsh_linetilt_list_get_posy(), xsh_linetilt_list_get_pre_posy(), xsh_linetilt_list_get_sigma_y(), xsh_linetilt_list_get_slit_index(), xsh_linetilt_list_get_slits(), xsh_linetilt_list_get_wavelengths(), xsh_linetilt_list_new(), xsh_linetilt_list_save(), xsh_lingain(), xsh_lingain_create(), xsh_lingain_pre_format(), xsh_load_ref_table(), xsh_localization_load(), xsh_localization_save(), xsh_localize_obj(), xsh_localize_obj_auto(), xsh_localize_obj_ifu(), xsh_localize_obj_manual(), xsh_mbias(), xsh_mbias_create(), xsh_mbias_get_fpn(), xsh_mdark(), xsh_mdark_create(), xsh_mdark_get_contam(), xsh_merge_ord(), xsh_merge_ord_ifu(), xsh_merge_ord_slitlet(), xsh_merge_ord_with_tag(), xsh_mflat(), xsh_mflat_create(), xsh_mflat_normalize(), xsh_mflat_recipe_main(), xsh_model(), xsh_model_anneal(), xsh_model_anneal_comp(), xsh_model_compute_residuals(), xsh_model_compute_slitmap_kw(), xsh_model_config_load_best(), xsh_model_first_anneal(), xsh_model_first_anneal_save(), xsh_model_get_xy(), xsh_model_locus(), xsh_model_maps_create(), xsh_model_order_edges_tab_create(), xsh_model_pipe_anneal(), xsh_model_reduce(), xsh_model_refining_detect(), xsh_model_spectralformat_create(), xsh_model_temperature_update_frame(), xsh_model_temperature_update_structure(), xsh_model_THE_create(), xsh_monitor_flux(), xsh_monitor_spectrum1D_flux(), xsh_monitor_spectrum1D_flux_qc(), xsh_multiply_flat(), xsh_nod_group_by_reloff(), xsh_nod_prepare_set(), xsh_nod_rectify_and_shift_with_key(), xsh_normalize_spectrum(), xsh_normalize_spectrum_image_slice(), xsh_normalize_spectrum_ord(), xsh_object_localize(), xsh_opt_extract(), xsh_opt_extract_orders(), xsh_optextract_produce_model(), xsh_order_edge_list_fit(), xsh_order_frameset_by_date(), xsh_order_list_apply_shift(), xsh_order_list_create(), xsh_order_list_eval(), xsh_order_list_eval_int(), xsh_order_list_fit(), xsh_order_list_load(), xsh_order_list_merge(), xsh_order_list_save(), xsh_order_split_qth_d2(), xsh_order_table_from_fmtchk(), xsh_orderpos(), xsh_orderpos_create(), xsh_parameters_background_create(), xsh_parameters_background_get(), xsh_parameters_clipping_crh_create(), xsh_parameters_clipping_crh_get(), xsh_parameters_clipping_dcn_create(), xsh_parameters_clipping_dcn_get(), xsh_parameters_clipping_detect_arclines_create(), xsh_parameters_clipping_detect_arclines_get(), xsh_parameters_clipping_noise_create(), xsh_parameters_clipping_noise_get(), xsh_parameters_clipping_specres_create(), xsh_parameters_clipping_specres_get(), xsh_parameters_clipping_tilt_create(), xsh_parameters_clipping_tilt_get(), xsh_parameters_combine_nod_create(), xsh_parameters_combine_nod_get(), xsh_parameters_compute_response_create(), xsh_parameters_compute_response_get(), xsh_parameters_create_from_drs_table(), xsh_parameters_d2_detect_order_create(), xsh_parameters_d2_detect_order_get(), xsh_parameters_detect_arclines_create(), xsh_parameters_detect_arclines_get(), xsh_parameters_detect_continuum_create(), xsh_parameters_detect_continuum_get(), xsh_parameters_detect_order_create(), xsh_parameters_detect_order_get(), xsh_parameters_dispersol_create(), xsh_parameters_dispersol_get(), xsh_parameters_dosky_domap_get(), xsh_parameters_extract_create(), xsh_parameters_extract_get(), xsh_parameters_find(), xsh_parameters_generic(), xsh_parameters_geom_ifu_mode_create(), xsh_parameters_get_boolean(), xsh_parameters_get_double(), xsh_parameters_get_int(), xsh_parameters_hot_cold_pix_create(), xsh_parameters_localize_obj_create(), xsh_parameters_localize_obj_get(), xsh_parameters_merge_ord_create(), xsh_parameters_merge_ord_get(), xsh_parameters_new_bool(), xsh_parameters_new_boolean(), xsh_parameters_new_double(), xsh_parameters_new_float(), xsh_parameters_new_int(), xsh_parameters_new_range_double(), xsh_parameters_new_range_int(), xsh_parameters_new_string(), xsh_parameters_opt_extract_create(), xsh_parameters_opt_extract_get(), xsh_parameters_optimal_extract_create(), xsh_parameters_optimal_extract_get_kappa(), xsh_parameters_pre_overscan(), xsh_parameters_rectify_create(), xsh_parameters_rectify_fast_get(), xsh_parameters_rectify_get(), xsh_parameters_remove_crh_single_create(), xsh_parameters_remove_crh_single_get(), xsh_parameters_slit_limit_create(), xsh_parameters_slit_limit_get(), xsh_parameters_subtract_sky_single_create(), xsh_parameters_subtract_sky_single_get(), xsh_parameters_subtract_sky_single_get_first(), xsh_parameters_subtract_sky_single_get_gain(), xsh_parameters_subtract_sky_single_get_kappa(), xsh_parameters_subtract_sky_single_get_niter(), xsh_parameters_subtract_sky_single_get_ron(), xsh_parameters_subtract_sky_single_get_second(), xsh_parameters_subtract_sky_single_get_true(), xsh_parameters_use_model_create(), xsh_parameters_wavecal_margin_create(), xsh_parameters_wavecal_margin_get(), xsh_parameters_wavecal_range_create(), xsh_parameters_wavecal_range_get(), xsh_parameters_wavecal_s_n_create(), xsh_parameters_wavecal_s_n_get(), xsh_params_bin_scale(), xsh_params_set_defaults(), xsh_parse_catalog_std_stars(), xsh_pfits_get_nb_pinhole(), xsh_pfits_set_arm(), xsh_phys_spectrum_save(), xsh_plist_set_cd_matrix2(), xsh_plist_set_cd_matrix3(), xsh_pre_3d_init(), xsh_pre_3d_load(), xsh_pre_3d_new(), xsh_pre_3d_save(), xsh_pre_abs(), xsh_pre_add(), xsh_pre_add_scalar(), xsh_pre_create(), xsh_pre_data_window_median_flux(), xsh_pre_data_window_median_flux_pa(), xsh_pre_data_window_sample_flux_pa(), xsh_pre_divide(), xsh_pre_divide_scalar(), xsh_pre_duplicate(), xsh_pre_extract(), xsh_pre_flip(), xsh_pre_frame_subtract(), xsh_pre_get_bpmap(), xsh_pre_init(), xsh_pre_load(), xsh_pre_median_mean_stdev(), xsh_pre_median_mean_stdev_window(), xsh_pre_multiply(), xsh_pre_multiply_image(), xsh_pre_multiply_scalar(), xsh_pre_new(), xsh_pre_normalize(), xsh_pre_save(), xsh_pre_save_product(), xsh_pre_subtract(), xsh_pre_subtract_scalar(), xsh_pre_turn(), xsh_pre_window_best_median_flux_pos(), xsh_predict(), xsh_predict_create(), xsh_preframe_extract(), xsh_preoverscan_corr(), xsh_prepare(), xsh_print_cpl_frameset(), xsh_print_cpl_property(), xsh_print_cpl_propertylist(), xsh_rec_get_nod_kw(), xsh_rec_list_add(), xsh_rec_list_create(), xsh_rec_list_duplicate(), xsh_rec_list_frame_invert(), xsh_rec_list_load(), xsh_rec_list_load_eso(), xsh_rec_list_rectify(), xsh_rec_list_save(), xsh_rec_list_save2(), xsh_rec_list_save_table(), xsh_rec_list_update_header(), xsh_rectify(), xsh_rectify_and_shift(), xsh_rectify_ifu(), xsh_rectify_orders(), xsh_rectify_orders_ifu(), xsh_remove_cosmics(), xsh_remove_cr(), xsh_remove_crh_multiple(), xsh_remove_crh_single(), xsh_resid_order_2tab(), xsh_resid_order_create(), xsh_resid_order_load(), xsh_resid_order_save(), xsh_resid_tab_create(), xsh_resid_tab_load(), xsh_resid_tab_save(), xsh_respon_slit_nod(), xsh_respon_slit_nod_create(), xsh_respon_slit_offset(), xsh_respon_slit_offset_create(), xsh_respon_slit_stare(), xsh_respon_slit_stare_create(), xsh_response_calculate(), xsh_save_sky_model(), xsh_scharr_x(), xsh_scharr_y(), xsh_scired_ifu_offset(), xsh_scired_ifu_offset_create(), xsh_scired_ifu_stare(), xsh_scired_ifu_stare_create(), xsh_scired_nod_get_parameters(), xsh_scired_nod_params_set_defaults(), xsh_scired_slit_nod(), xsh_scired_slit_nod_accurate(), xsh_scired_slit_nod_create(), xsh_scired_slit_nod_fast(), xsh_scired_slit_nod_get_calibs(), xsh_scired_slit_offset(), xsh_scired_slit_offset_create(), xsh_scired_slit_stare(), xsh_scired_slit_stare_create(), xsh_scired_util_spectra_flux_calibrate(), xsh_set_cd_matrix2d(), xsh_set_cd_matrix3d(), xsh_set_image_cpl_bpmap(), xsh_set_recipe_file_prefix(), xsh_shift(), xsh_shift_rectified(), xsh_shift_tab_create(), xsh_shift_tab_load(), xsh_shift_tab_save(), xsh_slice_offset_load(), xsh_slice_offset_save(), xsh_slit_offset_get_calibs(), xsh_slit_offset_get_params(), xsh_slit_stare_correct_crh_and_sky(), xsh_slit_stare_get_calibs(), xsh_slit_stare_get_maps(), xsh_slit_stare_get_params(), xsh_sobel_lx(), xsh_sobel_ly(), xsh_spectralformat_check_wlimit(), xsh_spectralformat_list_get_orders(), xsh_spectralformat_list_load(), xsh_spectrum1D_create(), xsh_spectrum1D_get_errs(), xsh_spectrum1D_get_flux(), xsh_spectrum1D_get_qual(), xsh_spectrum1D_load(), xsh_spectrum1D_save(), xsh_spectrum_1D_create(), xsh_spectrum_2D_create(), xsh_spectrum_duplicate(), xsh_spectrum_get_errs(), xsh_spectrum_get_flux(), xsh_spectrum_get_qual(), xsh_spectrum_interpolate(), xsh_spectrum_interpolate_linear(), xsh_spectrum_load(), xsh_spectrum_load_order(), xsh_spectrum_resample(), xsh_spectrum_save(), xsh_spectrum_save_order(), xsh_star_flux_list_free(), xsh_star_flux_list_load(), xsh_star_flux_list_save(), xsh_star_flux_list_save_order(), xsh_subtract_background(), xsh_subtract_bias(), xsh_subtract_dark(), xsh_subtract_nir_on_off(), xsh_subtract_sky_nod(), xsh_subtract_sky_offset(), xsh_subtract_sky_single(), xsh_table_edge_prepare(), xsh_table_interpolate(), xsh_table_monitor_flux_qc(), xsh_test_create_frame(), xsh_the_map_load(), xsh_the_map_save(), xsh_tools_get_statistics(), xsh_tools_tchebitchev_poly_eval(), xsh_update_pheader_in_image_multi(), xsh_util_afc(), xsh_util_afc_create(), xsh_util_apply_response(), xsh_util_apply_response_create(), xsh_util_bpmap_coadd(), xsh_util_bpmap_coadd_exec(), xsh_util_bpmap_nl_raw2pre(), xsh_util_bpmap_nl_raw2pre_create(), xsh_util_compute_qc_residuals(), xsh_util_compute_response(), xsh_util_compute_response_create(), xsh_util_crh_single(), xsh_util_crh_single_create(), xsh_util_efficiency(), xsh_util_efficiency1d(), xsh_util_efficiency1d_create(), xsh_util_efficiency2d(), xsh_util_efficiency2d_create(), xsh_util_efficiency_create(), xsh_util_frameset_collapse_mean(), xsh_util_guess_xy(), xsh_util_guess_xy_create(), xsh_util_ifu_build_cube(), xsh_util_ifu_build_cube_create(), xsh_util_ima_arith(), xsh_util_ima_arith_create(), xsh_util_ima_getextno(), xsh_util_ima_getextno_create(), xsh_util_ima_oversample(), xsh_util_ima_oversample_create(), xsh_util_ima_rebin(), xsh_util_ima_rebin_create(), xsh_util_ima_shift(), xsh_util_ima_shift_create(), xsh_util_ima_subsample(), xsh_util_ima_subsample_create(), xsh_util_integrate(), xsh_util_integrate_create(), xsh_util_model_SPF_create(), xsh_util_multiply_by_response(), xsh_util_multiply_by_response_ord(), xsh_util_physmod(), xsh_util_physmod_create(), xsh_util_physmod_model_THE_create(), xsh_util_ronbias(), xsh_util_ronbias_create(), xsh_utils_efficiency(), xsh_utils_efficiency_internal(), xsh_validate_model_cfg(), xsh_vector_divide_poly(), xsh_vector_get_err_mean(), xsh_vector_get_err_median(), xsh_vector_integrate(), xsh_vector_interpolate_linear(), xsh_verify_2dmap_poly_input(), xsh_wavecal(), xsh_wavecal_create(), xsh_wavecal_get_parameters(), xsh_wavelist_subtract_sky(), xsh_wavemap_lambda_range(), xsh_wavemap_list_build_sky(), xsh_wavemap_list_compute(), xsh_wavemap_list_compute_poly(), xsh_wavemap_list_create(), xsh_wavemap_list_eval_lambda(), xsh_wavemap_list_new(), xsh_wavemap_list_save(), xsh_wavemap_list_save2(), xsh_wavemap_list_save_poly(), xsh_wavemap_qc(), xsh_wavesol_add_poly(), xsh_wavesol_compute(), xsh_wavesol_create(), xsh_wavesol_dump(), xsh_wavesol_eval_polx(), xsh_wavesol_eval_poly(), xsh_wavesol_load(), xsh_wavesol_residual(), xsh_wavesol_save(), xsh_wavesol_trace(), and xsh_wavetab_qc().

#define check_msg ( COMMAND,
...   ) 
Value:
irplib_error_assure((cpl_msg_indent_more(),                                  \
                       (COMMAND),                                              \
                       cpl_msg_indent_less(),                                  \
                       cpl_error_get_code() == CPL_ERROR_NONE),                \
              cpl_error_get_code(),                                    \
              (__VA_ARGS__), goto cleanup)

Definition at line 62 of file xsh_error.h.

Referenced by add_noisy_pixels(), create_frame(), main(), mkHeader(), set_masterdark_qc(), setHeader(), verifCr(), xsh_add_product(), xsh_add_product_bpmap(), xsh_add_product_image(), xsh_add_product_imagelist(), xsh_background_poly(), xsh_baryvel(), xsh_cfg_recover_driver(), xsh_check_remove_crh_multiple(), xsh_compute_linearity(), xsh_compute_response(), xsh_compute_response_ord(), xsh_create_master_bias2(), xsh_create_master_bpmap(), xsh_create_master_dark(), xsh_detect_arclines(), xsh_dfs_set_groups(), xsh_erase_table_rows(), xsh_geom_ifu(), xsh_get_property_value(), xsh_get_table_value(), xsh_image_get_hot_cold_maps(), xsh_linear(), xsh_linear_group_by_exptime(), xsh_mbias_get_fpn(), xsh_mdark(), xsh_model(), xsh_model_reduce(), xsh_normalize_spectrum_image(), xsh_orderpos(), xsh_pfits_get_arcfile(), xsh_pfits_get_b_dec_cumoffset(), xsh_pfits_get_b_dec_reloffset(), xsh_pfits_get_b_ra_cumoffset(), xsh_pfits_get_b_ra_reloffset(), xsh_pfits_get_bias_down_median(), xsh_pfits_get_bias_down_stdev(), xsh_pfits_get_bias_left_median(), xsh_pfits_get_bias_left_stdev(), xsh_pfits_get_bias_right_median(), xsh_pfits_get_bias_right_stdev(), xsh_pfits_get_bias_up_median(), xsh_pfits_get_bias_up_stdev(), xsh_pfits_get_cd11(), xsh_pfits_get_cd12(), xsh_pfits_get_cd13(), xsh_pfits_get_cd21(), xsh_pfits_get_cd22(), xsh_pfits_get_cd23(), xsh_pfits_get_cd31(), xsh_pfits_get_cd32(), xsh_pfits_get_cd33(), xsh_pfits_get_cdelt1(), xsh_pfits_get_cdelt2(), xsh_pfits_get_cdelt3(), xsh_pfits_get_crpix1(), xsh_pfits_get_crpix2(), xsh_pfits_get_crpix3(), xsh_pfits_get_crval1(), xsh_pfits_get_crval2(), xsh_pfits_get_crval3(), xsh_pfits_get_cumoffsetx(), xsh_pfits_get_cumoffsety(), xsh_pfits_get_date(), xsh_pfits_get_date_obs(), xsh_pfits_get_dec(), xsh_pfits_get_dec_cumoffset(), xsh_pfits_get_dec_reloffset(), xsh_pfits_get_det_gain(), xsh_pfits_get_det_pxspace(), xsh_pfits_get_dit(), xsh_pfits_get_dpr_catg(), xsh_pfits_get_dpr_tech(), xsh_pfits_get_dpr_type(), xsh_pfits_get_exptime(), xsh_pfits_get_extname(), xsh_pfits_get_extract_slit_max(), xsh_pfits_get_extract_slit_min(), xsh_pfits_get_FOCU1ENC(), xsh_pfits_get_lamp_on_off(), xsh_pfits_get_mjdobs(), xsh_pfits_get_nod_cumoffset(), xsh_pfits_get_nod_jitterwidth(), xsh_pfits_get_nod_reloffset(), xsh_pfits_get_nodthrow(), xsh_pfits_get_obs_id(), xsh_pfits_get_obs_targ_name(), xsh_pfits_get_pcatg(), xsh_pfits_get_posang(), xsh_pfits_get_pszx(), xsh_pfits_get_pszy(), xsh_pfits_get_qc_mbiasavg(), xsh_pfits_get_qc_mbiasmed(), xsh_pfits_get_qc_mbiasrms(), xsh_pfits_get_qc_mbiasslope(), xsh_pfits_get_qc_ncrh(), xsh_pfits_get_qc_nhpix(), xsh_pfits_get_qc_ron(), xsh_pfits_get_qc_structx(), xsh_pfits_get_qc_structy(), xsh_pfits_get_ra(), xsh_pfits_get_ra_cumoffset(), xsh_pfits_get_ra_reloffset(), xsh_pfits_get_raw1catg(), xsh_pfits_get_raw1name(), xsh_pfits_get_rectify_bin_lambda(), xsh_pfits_get_rectify_bin_space(), xsh_pfits_get_rectify_lambda_max(), xsh_pfits_get_rectify_lambda_min(), xsh_pfits_get_rectify_space_max(), xsh_pfits_get_rectify_space_min(), xsh_pfits_get_slitmap_median_cen(), xsh_pfits_get_slitmap_median_edglo(), xsh_pfits_get_slitmap_median_edgup(), xsh_pfits_get_slitmap_median_sliclo(), xsh_pfits_get_slitmap_median_slicup(), xsh_pfits_get_tel_targ_alpha(), xsh_pfits_get_tel_targ_delta(), xsh_pfits_get_temp2(), xsh_pfits_get_temp5(), xsh_pfits_get_temp82(), xsh_pfits_get_wavesol_lambda_max(), xsh_pfits_get_wavesol_lambda_min(), xsh_pfits_get_wavesol_order_max(), xsh_pfits_get_wavesol_order_min(), xsh_pfits_get_wavesol_slit_max(), xsh_pfits_get_wavesol_slit_min(), xsh_pfits_get_wavesol_x_max(), xsh_pfits_get_wavesol_x_min(), xsh_pfits_get_wavesol_y_max(), xsh_pfits_get_wavesol_y_min(), xsh_pfits_get_wavesoltype(), xsh_pfits_get_win1_dit1(), xsh_pfits_set_arm(), xsh_pfits_set_b_dec_cumoffset(), xsh_pfits_set_b_dec_reloffset(), xsh_pfits_set_b_ra_cumoffset(), xsh_pfits_set_b_ra_reloffset(), xsh_pfits_set_bias_down_median(), xsh_pfits_set_bias_down_stdev(), xsh_pfits_set_bias_left_median(), xsh_pfits_set_bias_left_stdev(), xsh_pfits_set_bias_right_median(), xsh_pfits_set_bias_right_stdev(), xsh_pfits_set_bias_up_median(), xsh_pfits_set_bias_up_stdev(), xsh_pfits_set_cd1(), xsh_pfits_set_cd11(), xsh_pfits_set_cd12(), xsh_pfits_set_cd13(), xsh_pfits_set_cd21(), xsh_pfits_set_cd22(), xsh_pfits_set_cd23(), xsh_pfits_set_cd31(), xsh_pfits_set_cd32(), xsh_pfits_set_cd33(), xsh_pfits_set_cdelt1(), xsh_pfits_set_cdelt2(), xsh_pfits_set_cdelt3(), xsh_pfits_set_crpix1(), xsh_pfits_set_crpix2(), xsh_pfits_set_crpix3(), xsh_pfits_set_crval1(), xsh_pfits_set_crval2(), xsh_pfits_set_crval3(), xsh_pfits_set_ctype1(), xsh_pfits_set_ctype2(), xsh_pfits_set_ctype3(), xsh_pfits_set_datancom(), xsh_pfits_set_dit(), xsh_pfits_set_dpr_catg(), xsh_pfits_set_dpr_tech(), xsh_pfits_set_dpr_type(), xsh_pfits_set_exptime(), xsh_pfits_set_extname(), xsh_pfits_set_extract_slit_max(), xsh_pfits_set_extract_slit_min(), xsh_pfits_set_frac_sat(), xsh_pfits_set_nsat(), xsh_pfits_set_pcatg(), xsh_pfits_set_qc(), xsh_pfits_set_qc_bp_map_ntotal(), xsh_pfits_set_qc_contamination(), xsh_pfits_set_qc_crrate(), xsh_pfits_set_qc_darkmed_ave(), xsh_pfits_set_qc_darkmed_stdev(), xsh_pfits_set_qc_eff_fclip(), xsh_pfits_set_qc_eff_nclip(), xsh_pfits_set_qc_fpn(), xsh_pfits_set_qc_fpn_master(), xsh_pfits_set_qc_mbiasavg(), xsh_pfits_set_qc_mbiasmed(), xsh_pfits_set_qc_mbiasrms(), xsh_pfits_set_qc_mbiasslope(), xsh_pfits_set_qc_mdarkavg(), xsh_pfits_set_qc_mdarkmed(), xsh_pfits_set_qc_mdarkrms(), xsh_pfits_set_qc_mdarkslope(), xsh_pfits_set_qc_multi(), xsh_pfits_set_qc_ncrh(), xsh_pfits_set_qc_ncrh_mean(), xsh_pfits_set_qc_nhpix(), xsh_pfits_set_qc_nlinecat(), xsh_pfits_set_qc_nlinecat_clean(), xsh_pfits_set_qc_nlinefound(), xsh_pfits_set_qc_nlinefound_clean(), xsh_pfits_set_qc_norm_fpn(), xsh_pfits_set_qc_norm_fpn_err(), xsh_pfits_set_qc_ord_orderpos_max_pred(), xsh_pfits_set_qc_ord_orderpos_min_pred(), xsh_pfits_set_qc_ord_orderpos_ndet(), xsh_pfits_set_qc_ord_orderpos_nposall(), xsh_pfits_set_qc_ord_orderpos_npossel(), xsh_pfits_set_qc_ord_orderpos_npred(), xsh_pfits_set_qc_ord_orderpos_residavg(), xsh_pfits_set_qc_ord_orderpos_residmax(), xsh_pfits_set_qc_ord_orderpos_residmin(), xsh_pfits_set_qc_ord_orderpos_residrms(), xsh_pfits_set_qc_reg1_structx(), xsh_pfits_set_qc_reg1_structy(), xsh_pfits_set_qc_reg2_structx(), xsh_pfits_set_qc_reg2_structy(), xsh_pfits_set_qc_ron1(), xsh_pfits_set_qc_ron1_err(), xsh_pfits_set_qc_ron2(), xsh_pfits_set_qc_ron2_err(), xsh_pfits_set_qc_ron_master(), xsh_pfits_set_rectify_bin_lambda(), xsh_pfits_set_rectify_bin_space(), xsh_pfits_set_rectify_lambda_max(), xsh_pfits_set_rectify_lambda_min(), xsh_pfits_set_rectify_space_max(), xsh_pfits_set_rectify_space_min(), xsh_pfits_set_slitmap_median_cen(), xsh_pfits_set_slitmap_median_edglo(), xsh_pfits_set_slitmap_median_edgup(), xsh_pfits_set_slitmap_median_sliclo(), xsh_pfits_set_slitmap_median_slicup(), xsh_pfits_set_slitmap_order_cen(), xsh_pfits_set_slitmap_order_edglo(), xsh_pfits_set_slitmap_order_edgup(), xsh_pfits_set_slitmap_order_sliclo(), xsh_pfits_set_slitmap_order_slicup(), xsh_pfits_set_wavemap_order_lambda_max(), xsh_pfits_set_wavemap_order_lambda_min(), xsh_pfits_set_wavesol_lambda_max(), xsh_pfits_set_wavesol_lambda_min(), xsh_pfits_set_wavesol_order_max(), xsh_pfits_set_wavesol_order_min(), xsh_pfits_set_wavesol_slit_max(), xsh_pfits_set_wavesol_slit_min(), xsh_pfits_set_wavesol_x_max(), xsh_pfits_set_wavesol_x_min(), xsh_pfits_set_wavesol_y_max(), xsh_pfits_set_wavesol_y_min(), xsh_pfits_set_wavesoltype(), xsh_phys_spectrum_save(), xsh_polynomial_convert_from_table(), xsh_polynomial_derivative(), xsh_polynomial_derivative_1d(), xsh_polynomial_duplicate(), xsh_polynomial_evaluate_1d(), xsh_polynomial_fit_1d(), xsh_polynomial_get_coeff_1d(), xsh_polynomial_get_coeff_2d(), xsh_polynomial_new(), xsh_polynomial_regression_2d(), xsh_polynomial_solve_1d(), xsh_polynomial_solve_2d(), xsh_pre_3d_load(), xsh_pre_3d_save(), xsh_pre_create(), xsh_pre_duplicate(), xsh_pre_load(), xsh_pre_save(), xsh_remove_cosmics(), xsh_respon_slit_stare(), xsh_scired_ifu_stare(), xsh_scired_slit_offset(), xsh_scired_slit_stare(), xsh_select_table_rows(), xsh_sort_table_1(), xsh_sort_table_2(), xsh_spectrum1D_save(), xsh_spectrum_interpolate(), xsh_spectrum_save(), xsh_spectrum_save_order(), xsh_spline_hermite_table(), xsh_subtract_on_off(), xsh_the_map_load(), xsh_util_ima_arith(), xsh_util_ima_shift(), xsh_util_multiply_by_response(), and xsh_util_multiply_by_response_ord().

#define cknull ( NULLEXP   )     cknull_msg(NULLEXP," ")

Definition at line 77 of file xsh_error.h.

Referenced by xsh_cfg_recover_measure_line_xy(), and xsh_model_reduce().

#define cknull_msg ( NULLEXP,
...   ) 
Value:
cpl_error_ensure((NULLEXP) != NULL, \
  CPL_ERROR_UNSPECIFIED, goto cleanup,__VA_ARGS__)

Definition at line 73 of file xsh_error.h.

Referenced by xsh_2dmap(), xsh_image_smooth_fft(), xsh_image_smooth_median_x(), xsh_image_smooth_median_xy(), xsh_image_smooth_median_y(), and xsh_model_first_anneal().

#define passure ( CONDITION,
...   ) 
Value:
assure(CONDITION, CPL_ERROR_UNSPECIFIED,      \
                                "Internal program error. Please report to "   \
                                PACKAGE_BUGREPORT " " __VA_ARGS__)

Definition at line 82 of file xsh_error.h.

Referenced by subtract_background(), xsh_frameset_merge(), xsh_image_mflat_detect_blemishes(), xsh_image_mflat_detect_hotcold(), xsh_polynomial_fit_2d(), xsh_pre_get_data_buffer_const(), xsh_pre_get_errs_buffer_const(), and xsh_select_table_rows().

#define XSH_ASSURE_NOT_ILLEGAL ( cond   ) 
Value:
assure(cond, CPL_ERROR_ILLEGAL_INPUT,\
    "condition failed: " #cond )

Definition at line 107 of file xsh_error.h.

Referenced by add_qc_crh(), chunk_coadd(), data_wavesol_fit_with_sigma(), detect_centroid(), lambda_fit(), main(), test_tech_eval_perf(), xsh_2dmap(), xsh_arclist_get_wavelength(), xsh_arclist_is_rejected(), xsh_arclist_reject(), xsh_arclist_restore(), xsh_badpixelmap_or(), xsh_cfg_recover_last_step(), xsh_create_master_bias2(), xsh_detect_arclines(), xsh_detect_max_y(), xsh_detect_order_edge(), xsh_dfs_filter(), xsh_dfs_split_offset(), xsh_dispersol_list_add(), xsh_dispersol_list_load(), xsh_dispersol_list_new(), xsh_dispersol_list_to_slitmap(), xsh_eval_y_avg_chunk(), xsh_follow_arclines(), xsh_geom_ifu(), xsh_grid_add(), xsh_grid_create(), xsh_grid_point_get(), xsh_image_3d_insert(), xsh_image_3d_load(), xsh_image_3d_new(), xsh_image_3d_save(), xsh_image_3d_write_fits_header(), xsh_image_divide_1D(), xsh_image_fit_spline(), xsh_image_gaussian_fit_y(), xsh_image_mult_1D(), xsh_instrument_update_from_spectralformat(), xsh_interpolate_linear(), xsh_localization_save(), xsh_localize_obj_auto(), xsh_mdark(), xsh_mflat(), xsh_order_edge_list_fit(), xsh_order_list_fit(), xsh_order_list_get_endy(), xsh_order_list_get_index_by_absorder(), xsh_order_list_get_starty(), xsh_order_list_load(), xsh_order_list_new(), xsh_order_list_save(), xsh_pre_3d_load(), xsh_pre_add_scalar(), xsh_pre_create(), xsh_pre_data_window_median_flux_pa(), xsh_pre_data_window_sample_flux_pa(), xsh_pre_divide_scalar(), xsh_pre_load(), xsh_pre_subtract_scalar(), xsh_predict(), xsh_rec_list_create_with_size(), xsh_rec_list_load(), xsh_rec_list_load_eso(), xsh_rec_list_save(), xsh_rec_list_save2(), xsh_rec_list_save_table(), xsh_rec_list_set_data_size(), xsh_rectify_orders(), xsh_reindex(), xsh_reindex_float(), xsh_reindex_int(), xsh_remove_cosmics(), xsh_resid_order_create(), xsh_resid_tab_create(), xsh_respon_slit_nod(), xsh_scired_ifu_offset(), xsh_scired_ifu_stare(), xsh_scired_slit_nod(), xsh_scired_slit_nod_get_calibs(), xsh_slit_offset_get_calibs(), xsh_sort(), xsh_spectralformat_list_create(), xsh_spectrum1D_create(), xsh_spectrum1D_load(), xsh_spectrum_1D_create(), xsh_spectrum_2D_create(), xsh_spectrum_load(), xsh_subtract_background(), xsh_subtract_nir_on_off(), xsh_subtract_sky_single(), xsh_the_map_create(), xsh_the_map_get_detx(), xsh_the_map_get_dety(), xsh_the_map_get_order(), xsh_the_map_get_slit_index(), xsh_the_map_get_slit_position(), xsh_the_map_get_wavelength(), xsh_the_map_set_arcline(), xsh_tools_get_statistics(), xsh_tools_min_max(), xsh_tools_tchebitchev_poly_eval(), xsh_tools_tchebitchev_reverse_transform(), xsh_tools_tchebitchev_transform(), xsh_tools_tchebitchev_transform_tab(), xsh_wavecal(), xsh_wavemap_list_compute(), xsh_wavemap_list_compute_poly(), xsh_wavemap_list_create(), xsh_wavemap_list_eval_lambda(), xsh_wavemap_list_new(), xsh_wavemap_list_set_max_size(), and xsh_wavesol_compute().

#define XSH_ASSURE_NOT_ILLEGAL_MSG ( cond,
msg   ) 
#define XSH_ASSURE_NOT_MISMATCH ( cond   ) 
Value:
assure(cond, CPL_ERROR_TYPE_MISMATCH,\
    "condition failed: "#cond )

Definition at line 115 of file xsh_error.h.

#define XSH_ASSURE_NOT_NULL ( pointer   ) 
Value:
assure(pointer != NULL, CPL_ERROR_NULL_INPUT,\
    "You have null pointer in input: " #pointer)

Definition at line 99 of file xsh_error.h.

Referenced by add_qc_crh(), analyse_extraction(), analyse_localization(), analyse_merge_ord(), analyse_rectify(), chunk_coadd(), compute_shift_with_kw(), compute_shift_with_localization(), compute_specres(), concat_rec(), create_blaze(), create_resid_tab(), create_zero_rectify(), data_wavesol_fit_with_sigma(), date_to_double(), do_compute(), fill_image(), fill_rectified(), find_tilt(), fit_spline(), get_errors(), lambda_fit(), lines_filter_by_sn(), main(), set_qc_parameters(), setHeader(), shift_with_kw(), shift_with_localization(), sof_to_frameset(), tab_minmax_get_index(), theo_tab_filter(), theo_tab_model(), xsh_abs_remove_crh_single(), xsh_add_product(), xsh_add_product_bpmap(), xsh_add_product_image(), xsh_add_product_imagelist(), xsh_add_product_pre(), xsh_add_product_pre_3d(), xsh_add_product_spectrum(), xsh_add_product_table(), xsh_add_product_table_multi(), xsh_afcthetab_create(), xsh_arclist_clean(), xsh_arclist_clean_from_list(), xsh_arclist_get_header(), xsh_arclist_get_nbrejected(), xsh_arclist_get_size(), xsh_arclist_get_wavelength(), xsh_arclist_is_rejected(), xsh_arclist_load(), xsh_arclist_reject(), xsh_arclist_restore(), xsh_arclist_save(), xsh_array_clip_mean(), xsh_array_clip_median(), xsh_array_clip_poly1d(), xsh_atmos_ext_list_get_K(), xsh_atmos_ext_list_get_lambda(), xsh_atmos_ext_list_load(), xsh_badpixelmap_or(), xsh_begin(), xsh_bpmap_collapse_mean(), xsh_bpmap_collapse_median(), xsh_calibrate_flux(), xsh_check_divide_flat(), xsh_check_remove_crh_multiple(), xsh_check_remove_crh_single(), xsh_check_subtract_bias(), xsh_check_subtract_dark(), xsh_check_subtract_sky_single(), xsh_combine_nod(), xsh_combine_offset(), xsh_compute_noise_map(), xsh_compute_response(), xsh_compute_response_ord(), xsh_compute_slice_dist(), xsh_compute_slit_index(), xsh_create_map(), xsh_create_master_bias(), xsh_create_master_bias2(), xsh_create_master_bpmap(), xsh_create_master_dark(), xsh_create_master_flat(), xsh_create_model_map(), xsh_create_order_table(), xsh_create_poly_wavemap(), xsh_data_check_spectralformat(), xsh_detect_arclines(), xsh_detect_continuum(), xsh_detect_edges(), xsh_detect_max_y(), xsh_detect_order_edge(), xsh_detect_slitlet_ratio(), xsh_dfs_filter(), xsh_dfs_split_nir(), xsh_dfs_split_offset(), xsh_dfs_split_qth_d2(), xsh_dispersol_list_add(), xsh_dispersol_list_eval(), xsh_dispersol_list_new(), xsh_dispersol_list_save(), xsh_dispersol_list_to_slitmap(), xsh_dispersol_list_to_wavemap(), xsh_divide_flat(), xsh_dump_arclist(), xsh_eval_y_avg_chunk(), xsh_extract_ifu(), xsh_extract_with_tag(), xsh_find_arc_line_list(), xsh_find_arc_line_list_clean(), xsh_find_model_config(), xsh_find_model_config_tab(), xsh_find_order_tab_centr(), xsh_find_order_tab_edges(), xsh_find_order_tab_guess(), xsh_find_order_tab_recov(), xsh_find_slitmap(), xsh_find_theo_tab_mode(), xsh_find_theo_tab_mult(), xsh_find_theo_tab_sing(), xsh_find_usr_lines_guess_tab(), xsh_find_wave_tab(), xsh_find_wave_tab_2d(), xsh_find_wave_tab_guess(), xsh_find_wave_tab_ifu(), xsh_fit_gaussian(), xsh_flat_merge_qth_d2(), xsh_flexcor(), xsh_follow_arclines(), xsh_follow_arclines_ifu(), xsh_format(), xsh_frame_abs(), xsh_frame_inv(), xsh_frame_mult(), xsh_frameset_add(), xsh_get_slit_edges(), xsh_get_table_value(), xsh_grid2table(), xsh_grid_add(), xsh_grid_dump(), xsh_grid_get_index(), xsh_grid_point_get(), xsh_grid_sort(), xsh_ifu_wavetab_create(), xsh_image_3d_get_data(), xsh_image_3d_get_size_x(), xsh_image_3d_get_size_y(), xsh_image_3d_get_size_z(), xsh_image_3d_get_type(), xsh_image_3d_insert(), xsh_image_3d_load(), xsh_image_3d_save(), xsh_image_coadd(), xsh_image_create_gaussian_image(), xsh_image_create_model_image(), xsh_image_divide_1D(), xsh_image_extract_optimal(), xsh_image_extract_standard(), xsh_image_fit_spline(), xsh_image_gaussian_fit_y(), xsh_image_mult_1D(), xsh_image_smooth_mean_x(), xsh_image_smooth_mean_y(), xsh_instrument_get_binx(), xsh_instrument_get_biny(), xsh_instrument_set_binx(), xsh_instrument_set_biny(), xsh_instrument_update_from_spectralformat(), xsh_instrument_update_lamp(), xsh_interpolate_linear(), xsh_interpolate_spectrum(), xsh_linetilt_is_duplicate(), xsh_linetilt_list_add(), xsh_linetilt_list_get_deltay(), xsh_linetilt_list_get_header(), xsh_linetilt_list_get_orders(), xsh_linetilt_list_get_posx(), xsh_linetilt_list_get_posy(), xsh_linetilt_list_get_pre_posy(), xsh_linetilt_list_get_sigma_y(), xsh_linetilt_list_get_slit_index(), xsh_linetilt_list_get_slits(), xsh_linetilt_list_get_wavelengths(), xsh_linetilt_list_new(), xsh_linetilt_list_save(), xsh_localization_get_header(), xsh_localization_load(), xsh_localization_save(), xsh_localize_obj(), xsh_localize_obj_auto(), xsh_localize_obj_ifu(), xsh_localize_obj_manual(), xsh_mdark(), xsh_merge_ord_ifu(), xsh_merge_ord_slitlet(), xsh_merge_ord_with_tag(), xsh_merge_point(), xsh_mflat_normalize(), xsh_model_config_load_best(), xsh_model_get_xy(), xsh_model_locus(), xsh_model_maps_create(), xsh_model_order_edges_tab_create(), xsh_model_pipe_anneal(), xsh_model_reduce(), xsh_model_spectralformat_create(), xsh_model_THE_create(), xsh_multiply_flat(), xsh_nod_group_by_reloff(), xsh_object_localize(), xsh_opt_extract_orders(), xsh_optextract_produce_model(), xsh_order_edge_list_fit(), xsh_order_frameset_by_date(), xsh_order_list_apply_shift(), xsh_order_list_create(), xsh_order_list_eval(), xsh_order_list_eval_int(), xsh_order_list_fit(), xsh_order_list_get_endy(), xsh_order_list_get_header(), xsh_order_list_get_index_by_absorder(), xsh_order_list_get_order(), xsh_order_list_get_starty(), xsh_order_list_load(), xsh_order_list_merge(), xsh_order_list_save(), xsh_order_list_set_bin_x(), xsh_order_list_set_bin_y(), xsh_order_split_qth_d2(), xsh_order_table_from_fmtchk(), xsh_paf_save(), xsh_parameters_background_create(), xsh_parameters_background_get(), xsh_parameters_clipping_dcn_create(), xsh_parameters_clipping_dcn_get(), xsh_parameters_clipping_detect_arclines_create(), xsh_parameters_clipping_detect_arclines_get(), xsh_parameters_clipping_specres_create(), xsh_parameters_clipping_tilt_create(), xsh_parameters_d2_detect_order_create(), xsh_parameters_d2_detect_order_get(), xsh_parameters_detect_arclines_create(), xsh_parameters_detect_arclines_get(), xsh_parameters_detect_continuum_create(), xsh_parameters_detect_continuum_get(), xsh_parameters_detect_order_create(), xsh_parameters_detect_order_get(), xsh_parameters_dispersol_create(), xsh_parameters_dispersol_get(), xsh_parameters_dosky_domap_get(), xsh_parameters_extract_create(), xsh_parameters_extract_get(), xsh_parameters_generic(), xsh_parameters_geom_ifu_mode_create(), xsh_parameters_geom_ifu_mode_get(), xsh_parameters_localize_obj_create(), xsh_parameters_localize_obj_get(), xsh_parameters_merge_ord_create(), xsh_parameters_merge_ord_get(), xsh_parameters_new_boolean(), xsh_parameters_opt_extract_create(), xsh_parameters_opt_extract_get(), xsh_parameters_optimal_extract_create(), xsh_parameters_pre_overscan(), xsh_parameters_rectify_create(), xsh_parameters_remove_crh_single_create(), xsh_parameters_remove_crh_single_get(), xsh_parameters_slit_limit_create(), xsh_parameters_slit_limit_get(), xsh_parameters_subtract_sky_single_create(), xsh_parameters_subtract_sky_single_get(), xsh_parameters_subtract_sky_single_get_gain(), xsh_parameters_subtract_sky_single_get_kappa(), xsh_parameters_subtract_sky_single_get_niter(), xsh_parameters_subtract_sky_single_get_ron(), xsh_parameters_subtract_sky_single_get_second(), xsh_parameters_use_model_create(), xsh_parameters_use_model_get(), xsh_pfits_get_nb_pinhole(), xsh_pfits_set_qc(), xsh_pfits_set_qc_multi(), xsh_phys_spectrum_save(), xsh_pre_3d_get_data(), xsh_pre_3d_get_errs(), xsh_pre_3d_get_nx(), xsh_pre_3d_get_ny(), xsh_pre_3d_get_nz(), xsh_pre_3d_get_qual(), xsh_pre_3d_init(), xsh_pre_3d_load(), xsh_pre_3d_save(), xsh_pre_abs(), xsh_pre_add(), xsh_pre_add_scalar(), xsh_pre_create(), xsh_pre_data_window_median_flux_pa(), xsh_pre_data_window_sample_flux_pa(), xsh_pre_divide_scalar(), xsh_pre_extract(), xsh_pre_flip(), xsh_pre_frame_subtract(), xsh_pre_from_raw_get(), xsh_pre_get_binx(), xsh_pre_get_biny(), xsh_pre_get_bpmap(), xsh_pre_get_data_buffer_const(), xsh_pre_get_data_const(), xsh_pre_get_errs_buffer_const(), xsh_pre_get_errs_const(), xsh_pre_get_gain(), xsh_pre_get_group(), xsh_pre_get_header(), xsh_pre_get_header_const(), xsh_pre_get_nx(), xsh_pre_get_ny(), xsh_pre_get_pszy(), xsh_pre_get_qual_const(), xsh_pre_init(), xsh_pre_load(), xsh_pre_median_mean_stdev(), xsh_pre_median_mean_stdev_window(), xsh_pre_multiply_image(), xsh_pre_multiply_scalar(), xsh_pre_normalize(), xsh_pre_save(), xsh_pre_save_product(), xsh_pre_subtract(), xsh_pre_subtract_scalar(), xsh_pre_turn(), xsh_pre_window_best_median_flux_pos(), xsh_preframe_extract(), xsh_prepare(), xsh_rec_get_nod_kw(), xsh_rec_list_add(), xsh_rec_list_create(), xsh_rec_list_create_with_size(), xsh_rec_list_dump(), xsh_rec_list_frame_invert(), xsh_rec_list_get_data1(), xsh_rec_list_get_errs1(), xsh_rec_list_get_header(), xsh_rec_list_get_lambda(), xsh_rec_list_get_lambda_max(), xsh_rec_list_get_lambda_min(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_nslit(), xsh_rec_list_get_order(), xsh_rec_list_get_qual1(), xsh_rec_list_get_slit(), xsh_rec_list_get_slit_max(), xsh_rec_list_get_slit_min(), xsh_rec_list_load(), xsh_rec_list_load_eso(), xsh_rec_list_rectify(), xsh_rec_list_save(), xsh_rec_list_save2(), xsh_rec_list_save_table(), xsh_rec_list_set_data_size(), xsh_rec_list_set_slit_max(), xsh_rec_list_set_slit_min(), xsh_rec_list_update_header(), xsh_rec_slit_size(), xsh_rectify(), xsh_rectify_and_shift(), xsh_rectify_ifu(), xsh_rectify_orders(), xsh_rectify_orders_ifu(), xsh_reindex(), xsh_reindex_float(), xsh_reindex_int(), xsh_remove_cosmics(), xsh_remove_crh_multiple(), xsh_resid_order_2tab(), xsh_resid_order_create(), xsh_resid_order_load(), xsh_resid_order_save(), xsh_resid_tab_create(), xsh_resid_tab_get_lambda_data(), xsh_resid_tab_get_order_data(), xsh_resid_tab_get_slitpos_data(), xsh_resid_tab_get_thpre_x_data(), xsh_resid_tab_get_thpre_y_data(), xsh_resid_tab_get_xgauss_data(), xsh_resid_tab_get_ygauss_data(), xsh_resid_tab_load(), xsh_resid_tab_log(), xsh_resid_tab_save(), xsh_respon_slit_stare(), xsh_shift(), xsh_shift_rectified(), xsh_shift_tab_create(), xsh_shift_tab_load(), xsh_shift_tab_save(), xsh_slice_offset_get_header(), xsh_slice_offset_load(), xsh_slice_offset_save(), xsh_sort(), xsh_spectralformat_check_wlimit(), xsh_spectralformat_list_get_header(), xsh_spectralformat_list_get_lambda_max(), xsh_spectralformat_list_get_lambda_min(), xsh_spectralformat_list_get_lamp(), xsh_spectralformat_list_get_orders(), xsh_spectralformat_list_load(), xsh_spectrum1D_get_errs(), xsh_spectrum1D_get_flux(), xsh_spectrum1D_get_lambda_max(), xsh_spectrum1D_get_lambda_min(), xsh_spectrum1D_get_lambda_step(), xsh_spectrum1D_get_qual(), xsh_spectrum1D_get_size(), xsh_spectrum1D_load(), xsh_spectrum1D_save(), xsh_spectrum_duplicate(), xsh_spectrum_get_errs(), xsh_spectrum_get_flux(), xsh_spectrum_get_lambda_max(), xsh_spectrum_get_lambda_min(), xsh_spectrum_get_lambda_step(), xsh_spectrum_get_qual(), xsh_spectrum_get_size(), xsh_spectrum_get_size_lambda(), xsh_spectrum_get_size_slit(), xsh_spectrum_load(), xsh_spectrum_load_order(), xsh_spectrum_save(), xsh_spectrum_save_order(), xsh_star_flux_list_get_flux(), xsh_star_flux_list_get_lambda(), xsh_star_flux_list_load(), xsh_star_flux_list_save(), xsh_star_flux_list_save_order(), xsh_subtract_background(), xsh_subtract_bias(), xsh_subtract_dark(), xsh_subtract_nir_on_off(), xsh_subtract_sky_nod(), xsh_subtract_sky_offset(), xsh_test_create_frame(), xsh_the_map_get_detx(), xsh_the_map_get_dety(), xsh_the_map_get_order(), xsh_the_map_get_size(), xsh_the_map_get_slit_index(), xsh_the_map_get_slit_position(), xsh_the_map_get_wavelength(), xsh_the_map_load(), xsh_the_map_save(), xsh_the_map_set_arcline(), xsh_tools_get_statistics(), xsh_tools_min_max(), xsh_tools_running_median_1d_get_max(), xsh_tools_tchebitchev_transform_tab(), xsh_update_pheader_in_image_multi(), xsh_vector_divide_poly(), xsh_vector_fit_gaussian(), xsh_vector_get_err_mean(), xsh_vector_get_err_median(), xsh_vector_integrate(), xsh_vector_interpolate_linear(), xsh_wavecal(), xsh_wavelist_subtract_sky(), xsh_wavemap_lambda_range(), xsh_wavemap_list_build_sky(), xsh_wavemap_list_compute(), xsh_wavemap_list_compute_poly(), xsh_wavemap_list_create(), xsh_wavemap_list_dump(), xsh_wavemap_list_eval_lambda(), xsh_wavemap_list_new(), xsh_wavemap_list_save(), xsh_wavemap_list_save2(), xsh_wavemap_list_save_poly(), xsh_wavemap_list_set_max_size(), xsh_wavemap_qc(), xsh_wavesol_apply_shift(), xsh_wavesol_compute(), xsh_wavesol_create(), xsh_wavesol_eval_polx(), xsh_wavesol_eval_poly(), xsh_wavesol_get_header(), xsh_wavesol_get_polx(), xsh_wavesol_get_poly(), xsh_wavesol_get_type(), xsh_wavesol_load(), xsh_wavesol_residual(), xsh_wavesol_save(), xsh_wavesol_set_bin_x(), xsh_wavesol_set_bin_y(), xsh_wavesol_set_type(), xsh_wavesol_trace(), and xsh_wavetab_qc().

#define XSH_ASSURE_NOT_NULL_MSG ( pointer,
msg   ) 
#define XSH_CHECK_COND ( A,
OPERATOR,
B,
SUFFIX,
...   ) 
Value:
assure(A OPERATOR B, CPL_ERROR_ILLEGAL_INPUT,\
  "assertion failed: %s %s %s\n" #SUFFIX "", #A, #OPERATOR, #B, __VA_ARGS__)

Definition at line 124 of file xsh_error.h.

#define XSH_CHECK_FRAMESET_SIZE ( FRAMESET,
OPERATOR,
SIZE   ) 
Value:
XSH_CHECK_COND(cpl_frameset_get_size(FRAMESET),OPERATOR,SIZE,\
    "%s","Frameset size invalid:")

Definition at line 128 of file xsh_error.h.

#define XSH_CMP_INT ( A,
OPERATOR,
B,
SUFFIX,
...   ) 
Value:
assure(A OPERATOR B, CPL_ERROR_ILLEGAL_INPUT,\
  "assertion failed: %s %s %s : %d %s %d\n"\
   #SUFFIX "", #A, #OPERATOR, #B , A, #OPERATOR, B __VA_ARGS__)

Definition at line 119 of file xsh_error.h.

Referenced by create_blaze(), xsh_pre_window_best_median_flux_pos(), xsh_rec_list_set_data_size(), xsh_rectify_orders_ifu(), and xsh_wavemap_list_new().

#define xsh_error_dump ( level   )     irplib_error_dump(level, level)
#define xsh_error_msg ( ...   ) 
 
#define xsh_error_reset (  )     xsh_irplib_error_reset()
#define XSH_REGDEBUG ( ...   )     xsh_msg_debug("<< REGDEBUG >> :" __VA_ARGS__)

Generated on 9 Mar 2011 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1