#include <xsh_utils_scired_slit.h>
#include <xsh_dfs.h>
#include <xsh_utils.h>
#include <xsh_utils_table.h>
#include <xsh_utils_efficiency.h>
#include <xsh_data_spectrum.h>
#include <xsh_model_utils.h>
#include <xsh_error.h>
#include <xsh_drl_check.h>
#include <xsh_pfits.h>
Go to the source code of this file.
Functions | |
cpl_error_code | xsh_stare_params_bin_scale (cpl_frameset *raws, xsh_background_param *backg, xsh_opt_extract_param *opt_extract_par, int *sub_sky_nbkpts1, int *sub_sky_nbkpts2) |
Corrects parameters for binning. | |
cpl_frameset * | xsh_nod_group_by_reloff (cpl_frameset *ord_set, xsh_instrument *instrument, xsh_stack_param *stack_par) |
cpl_frameset * | xsh_nod_group_by_reloff2 (cpl_frameset *ord_set, xsh_instrument *instrument, xsh_stack_param *stack_par) |
static cpl_frame * | xsh_frame_divide_flat (int do_flat, cpl_frame *src, cpl_frame *mflat, const char *tag, xsh_instrument *instr) |
static cpl_frame * | xsh_nod_median_correct_list_per_wavelength (cpl_frame *frame_i, xsh_instrument *inst) |
static cpl_error_code | xsh_nod_rectify_and_shift_with_key (const char *nod_name, const char *qual_name, const char *rec_prefix, cpl_frame *frame2D, cpl_frame *order_tab_edges, cpl_frame *wave_tab, cpl_frame *model_config_frame, cpl_frame *spectral_format, cpl_frame *disp_tab_frame, xsh_instrument *instrument, const int corr_sky, xsh_rectify_param *rectify_par, double **ref_ra, double **ref_dec, cpl_frame **shift2_frame, cpl_frame **shift1_frame) |
cpl_frameset * | 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, xsh_instrument *instrument, xsh_remove_crh_single_param *crh_single_par, xsh_rectify_param *rectify_par, const int do_flatfield, const int corr_sky, const int compute_eff, const char *rec_prefix, 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 *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, const char *throw_name, const int do_flatfield, const char *rec_prefix) |
cpl_error_code | 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, int pscan, const char *rec_prefix, const char *recipe_id) |
static cpl_error_code | xsh_scired_nod_params_monitor (xsh_rectify_param *rectify_par, xsh_localize_obj_param *loc_obj_par) |
monitor param values | |
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_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 *pscan, const char *rec_id) |
cpl_error_code | xsh_flux_calibrate1D (cpl_frame *rect1D, cpl_frame *atmext, cpl_frame *response, int mpar, xsh_instrument *inst, const char *rec_prefix, cpl_frame **fcal_rect_1D, cpl_frame **fcal_1D) |
cpl_error_code | xsh_flux_calibrate2D (cpl_frame *rect2D, cpl_frame *atmext, cpl_frame *response, int mpar, xsh_instrument *inst, const char *rec_prefix, cpl_frame **fcal_rect_2D, cpl_frame **fcal_2D) |
cpl_error_code | xsh_flux_calibrate (cpl_frame *rect2D, cpl_frame *rect1D, cpl_frame *atmext, cpl_frame *response, int 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, const char *rec_id, int *recipe_use_model, int pscan) |
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 **smap, cpl_frame **spectral_format, const char *rec_id) |
cpl_error_code | xsh_slit_stare_get_params (cpl_parameterlist *parameters, const char *rec_id, int *pre_overscan_corr, 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, int *do_optextract, xsh_opt_extract_param **opt_extract_par) |
cpl_error_code | xsh_slit_offset_get_params (cpl_parameterlist *parameters, const char *rec_id, xsh_localize_obj_param **loc_obj_par, xsh_rectify_param **rectify_par, xsh_remove_crh_single_param **crh_single_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, const int clean_tmp) |
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_frame * | xsh_compute_efficiency (cpl_frame *mer1D, cpl_frame *std_cat, cpl_frame *atm_ext, cpl_frame *high_abs_win, xsh_instrument *instr) |
static cpl_error_code | xsh_get_central_xy (cpl_frame *order_tab_edges, xsh_instrument *instrument, int *xcen, int *ycen) |
static cpl_error_code | xsh_frame_image_get_step (cpl_frame *frm_ima, const int xcen, const int ycen, const int direction, double *dif) |
static cpl_error_code | xsh_plist_set_spat_accuracy (cpl_propertylist *header, const double srms, const double serr, const double sys_err) |
static cpl_error_code | xsh_plist_set_wave_accuracy (cpl_propertylist *header, const double wrms, const double werr, const double sys_err) |
cpl_error_code | xsh_compute_resampling_accuracy (cpl_frame *wavemap, cpl_frame *slitmap, cpl_frame *order_tab_edges, cpl_frame *model_config, cpl_frame *science, xsh_instrument *instrument) |
cpl_error_code | xsh_compute_wavelength_resampling_accuracy (cpl_frame *wavemap, cpl_frame *order_tab_edges, cpl_frame *model_config, cpl_frame *science, xsh_instrument *instrument) |
cpl_frameset * | xsh_frameset_crh_single (cpl_frameset *raws, xsh_remove_crh_single_param *crh_single_par, xsh_instrument *instrument, const char *prefix, const char *spec) |
Generates a new frameset with each frame CRH-sigle rejected from input frameset. | |
cpl_frameset * | xsh_frameset_mflat_divide (cpl_frameset *input, cpl_frame *mflat, xsh_instrument *instrument) |
Generates a new frameset with each frame mflat divided input frameset. |
cpl_frame* xsh_compute_efficiency | ( | cpl_frame * | mer1D, | |
cpl_frame * | std_cat, | |||
cpl_frame * | atm_ext, | |||
cpl_frame * | high_abs_win, | |||
xsh_instrument * | instr | |||
) |
Definition at line 1888 of file xsh_utils_scired_slit.c.
References check, xsh_efficiency_compute(), xsh_frame_table_monitor_flux_qc(), and xsh_msg_error.
Referenced by xsh_respon_slit_nod(), xsh_respon_slit_offset(), and xsh_respon_slit_stare().
cpl_error_code xsh_compute_resampling_accuracy | ( | cpl_frame * | wavemap, | |
cpl_frame * | slitmap, | |||
cpl_frame * | order_tab_edges, | |||
cpl_frame * | model_config, | |||
cpl_frame * | science, | |||
xsh_instrument * | instrument | |||
) |
Definition at line 2029 of file xsh_utils_scired_slit.c.
References check, xsh_spectrum::flux_header, s, xsh_add_temporary_file(), XSH_ASSURE_NOT_NULL_MSG, XSH_CRDER1, XSH_CRDER2, xsh_frame_image_get_step(), xsh_free_frame(), xsh_free_image(), xsh_free_propertylist(), xsh_free_table(), xsh_get_central_xy(), XSH_LAMNLIN, XSH_LAMNLIN_C, XSH_LAMRMS, xsh_msg, xsh_msg_warning, xsh_plist_set_spat_accuracy(), xsh_plist_set_wave_accuracy(), xsh_pre_free(), XSH_QC_MODEL_ANNEAL_RESX_RMS, XSH_QC_MODEL_ANNEAL_RESY_RMS, XSH_QC_MODEL_NDAT, XSH_SPATRMS, xsh_spectrum_free(), xsh_spectrum_load(), and xsh_spectrum_save().
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_error_code xsh_compute_wavelength_resampling_accuracy | ( | cpl_frame * | wavemap, | |
cpl_frame * | order_tab_edges, | |||
cpl_frame * | model_config, | |||
cpl_frame * | science, | |||
xsh_instrument * | instrument | |||
) |
Definition at line 2193 of file xsh_utils_scired_slit.c.
References check, xsh_spectrum::flux_header, s, xsh_add_temporary_file(), XSH_ASSURE_NOT_NULL_MSG, XSH_CRDER2, xsh_frame_image_get_step(), xsh_free_frame(), xsh_free_image(), xsh_free_propertylist(), xsh_free_table(), xsh_get_central_xy(), XSH_LAMNLIN, XSH_LAMNLIN_C, xsh_msg, xsh_msg_warning, xsh_plist_set_wave_accuracy(), xsh_pre_free(), XSH_QC_MODEL_ANNEAL_RESY_RMS, XSH_QC_MODEL_NDAT, XSH_SPATRMS, xsh_spectrum_free(), xsh_spectrum_load(), and xsh_spectrum_save().
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_error_code xsh_flux_calibrate | ( | cpl_frame * | rect2D, | |
cpl_frame * | rect1D, | |||
cpl_frame * | atmext, | |||
cpl_frame * | response, | |||
int | 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 1404 of file xsh_utils_scired_slit.c.
References check, xsh_flux_calibrate1D(), and xsh_flux_calibrate2D().
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_error_code xsh_flux_calibrate1D | ( | cpl_frame * | rect1D, | |
cpl_frame * | atmext, | |||
cpl_frame * | response, | |||
int | mpar, | |||
xsh_instrument * | inst, | |||
const char * | rec_prefix, | |||
cpl_frame ** | fcal_rect_1D, | |||
cpl_frame ** | fcal_1D | |||
) |
Definition at line 1316 of file xsh_utils_scired_slit.c.
References check, xsh_add_temporary_file(), XSH_FLUX_ORDER1D, XSH_FLUX_OXT1D, xsh_free_frame(), xsh_instrument_arm_tostring(), xsh_merge_ord(), xsh_msg, XSH_NORM_ORDER1D, XSH_NORM_OXT1D, xsh_normalize_spectrum_ord(), XSH_ORDER_OXT1D, and xsh_util_multiply_by_response_ord().
Referenced by xsh_flux_calibrate(), xsh_respon_slit_stare(), and xsh_scired_slit_stare().
cpl_error_code xsh_flux_calibrate2D | ( | cpl_frame * | rect2D, | |
cpl_frame * | atmext, | |||
cpl_frame * | response, | |||
int | mpar, | |||
xsh_instrument * | inst, | |||
const char * | rec_prefix, | |||
cpl_frame ** | fcal_rect_2D, | |||
cpl_frame ** | fcal_2D | |||
) |
Definition at line 1368 of file xsh_utils_scired_slit.c.
References check, xsh_add_temporary_file(), XSH_FLUX_ORDER2D, xsh_free_frame(), xsh_instrument_arm_tostring(), xsh_merge_ord(), XSH_NORM_ORDER2D, xsh_normalize_spectrum_ord(), and xsh_util_multiply_by_response_ord().
Referenced by xsh_flux_calibrate().
static cpl_frame* xsh_frame_divide_flat | ( | int | do_flat, | |
cpl_frame * | src, | |||
cpl_frame * | mflat, | |||
const char * | tag, | |||
xsh_instrument * | instr | |||
) | [static] |
Definition at line 532 of file xsh_utils_scired_slit.c.
References check, xsh_divide_flat(), and xsh_msg.
Referenced by xsh_scired_slit_nod_accurate(), and xsh_scired_slit_nod_fast().
static cpl_error_code xsh_frame_image_get_step | ( | cpl_frame * | frm_ima, | |
const int | xcen, | |||
const int | ycen, | |||
const int | direction, | |||
double * | dif | |||
) | [static] |
Definition at line 1946 of file xsh_utils_scired_slit.c.
References nx, and xsh_free_image().
Referenced by xsh_compute_resampling_accuracy(), and xsh_compute_wavelength_resampling_accuracy().
cpl_frameset* xsh_frameset_crh_single | ( | cpl_frameset * | raws, | |
xsh_remove_crh_single_param * | crh_single_par, | |||
xsh_instrument * | instrument, | |||
const char * | prefix, | |||
const char * | spec | |||
) |
Generates a new frameset with each frame CRH-sigle rejected from input frameset.
[in] | raws | The input Frameset |
[in] | crh_single_par | Parameters for remove crh single |
[in] | instrument | Pointer to instrument description |
Definition at line 2349 of file xsh_utils_scired_slit.c.
References check, xsh_remove_crh_single_param::nb_iter, xsh_add_temporary_file(), xsh_instrument_arm_tostring(), xsh_msg, and xsh_remove_crh_single().
Referenced by xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_scired_slit_nod(), xsh_scired_slit_offset(), and xsh_scired_slit_stare().
cpl_frameset* xsh_frameset_mflat_divide | ( | cpl_frameset * | input, | |
cpl_frame * | mflat, | |||
xsh_instrument * | instrument | |||
) |
Generates a new frameset with each frame mflat divided input frameset.
[in] | raws | The input Frameset |
[in] | mflat | master flat |
[in] | instrument | Pointer to instrument description |
Definition at line 2403 of file xsh_utils_scired_slit.c.
References xsh_add_temporary_file(), xsh_divide_flat(), xsh_free_frame(), xsh_instrument_arm_tostring(), and xsh_msg.
Referenced by xsh_respon_slit_offset(), and xsh_scired_slit_offset().
static cpl_error_code xsh_get_central_xy | ( | cpl_frame * | order_tab_edges, | |
xsh_instrument * | instrument, | |||
int * | xcen, | |||
int * | ycen | |||
) | [static] |
Definition at line 1908 of file xsh_utils_scired_slit.c.
References xsh_instrument::binx, xsh_instrument::biny, XSH_ASSURE_NOT_NULL_MSG, and xsh_free_table().
Referenced by xsh_compute_resampling_accuracy(), and xsh_compute_wavelength_resampling_accuracy().
cpl_frameset* xsh_nod_group_by_reloff | ( | cpl_frameset * | ord_set, | |
xsh_instrument * | instrument, | |||
xsh_stack_param * | stack_par | |||
) |
Definition at line 228 of file xsh_utils_scired_slit.c.
References check, xsh_add_temporary_file(), 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_frameset* xsh_nod_group_by_reloff2 | ( | cpl_frameset * | ord_set, | |
xsh_instrument * | instrument, | |||
xsh_stack_param * | stack_par | |||
) |
Definition at line 348 of file xsh_utils_scired_slit.c.
References check, xsh_add_temporary_file(), 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().
static cpl_frame* xsh_nod_median_correct_list_per_wavelength | ( | cpl_frame * | frame_i, | |
xsh_instrument * | inst | |||
) | [static] |
Definition at line 644 of file xsh_utils_scired_slit.c.
References xsh_rec_list::list, xsh_rec::nlambda, xsh_rec::nslit, xsh_add_temporary_file(), XSH_ASSURE_NOT_NULL, xsh_rec_list_free(), xsh_rec_list_get_data1(), xsh_rec_list_load(), and xsh_rec_list_save().
Referenced by xsh_nod_rectify_and_shift_with_key().
static cpl_error_code xsh_nod_rectify_and_shift_with_key | ( | const char * | nod_name, | |
const char * | qual_name, | |||
const char * | rec_prefix, | |||
cpl_frame * | frame2D, | |||
cpl_frame * | order_tab_edges, | |||
cpl_frame * | wave_tab, | |||
cpl_frame * | model_config_frame, | |||
cpl_frame * | spectral_format, | |||
cpl_frame * | disp_tab_frame, | |||
xsh_instrument * | instrument, | |||
const int | corr_sky, | |||
xsh_rectify_param * | rectify_par, | |||
double ** | ref_ra, | |||
double ** | ref_dec, | |||
cpl_frame ** | shift2_frame, | |||
cpl_frame ** | shift1_frame | |||
) | [static] |
< Output of xsh_rectfiy
Definition at line 704 of file xsh_utils_scired_slit.c.
References check, shift_with_kw(), xsh_add_temporary_file(), xsh_free_frame(), xsh_nod_median_correct_list_per_wavelength(), xsh_rec_list_frame_invert(), and xsh_rectify().
Referenced by xsh_scired_slit_nod_fast().
static cpl_error_code xsh_plist_set_spat_accuracy | ( | cpl_propertylist * | header, | |
const double | srms, | |||
const double | serr, | |||
const double | sys_err | |||
) | [static] |
Definition at line 1998 of file xsh_utils_scired_slit.c.
References XSH_CRDER2, XSH_CRDER2_C, XSH_CSYER2, XSH_CSYER2_C, XSH_CUNIT1, XSH_CUNIT2, XSH_CUNIT2_C, XSH_SPATRMS, and XSH_SPATRMS_C.
Referenced by xsh_compute_resampling_accuracy().
static cpl_error_code xsh_plist_set_wave_accuracy | ( | cpl_propertylist * | header, | |
const double | wrms, | |||
const double | werr, | |||
const double | sys_err | |||
) | [static] |
Definition at line 2013 of file xsh_utils_scired_slit.c.
References XSH_CRDER1, XSH_CRDER1_C, XSH_CSYER1, XSH_CSYER1_C, XSH_CUNIT1, XSH_CUNIT1_C, XSH_LAMNLIN, XSH_LAMRMS, and XSH_LAMRMS_C.
Referenced by xsh_compute_resampling_accuracy(), and xsh_compute_wavelength_resampling_accuracy().
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_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 * | pscan, | |||
const char * | rec_id | |||
) |
Definition at line 1277 of file xsh_utils_scired_slit.c.
References check, xsh_parameters_combine_nod_get(), xsh_parameters_extract_get(), xsh_parameters_get_int(), xsh_parameters_localize_obj_get(), xsh_parameters_rectify_fast_get(), xsh_parameters_rectify_get(), xsh_parameters_remove_crh_single_get(), xsh_parameters_slit_limit_get(), xsh_rectify_params_set_defaults(), and xsh_scired_nod_params_monitor().
Referenced by xsh_respon_slit_nod(), and xsh_scired_slit_nod().
static cpl_error_code xsh_scired_nod_params_monitor | ( | xsh_rectify_param * | rectify_par, | |
xsh_localize_obj_param * | loc_obj_par | |||
) | [static] |
monitor param values
rectify_par | rectify param structure | |
loc_obj_par | localizzation object param |
Definition at line 1256 of file xsh_utils_scired_slit.c.
References xsh_localize_obj_param::loc_chunk_nb, xsh_localize_obj_param::nod_step, xsh_rectify_param::rectif_bin_lambda, xsh_rectify_param::rectif_bin_space, xsh_rectify_param::rectif_radius, and xsh_msg_dbg_low.
Referenced by xsh_scired_nod_get_parameters().
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 * | 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, | |||
const char * | throw_name, | |||
const int | do_flatfield, | |||
const char * | rec_prefix | |||
) |
Definition at line 920 of file xsh_utils_scired_slit.c.
References check, xsh_add_temporary_file(), 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_msg_error, xsh_rec_list_frame_invert(), xsh_rectify(), and xsh_rectify_and_shift().
Referenced by xsh_respon_slit_nod(), and xsh_scired_slit_nod().
cpl_frameset* 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, | |||
xsh_instrument * | instrument, | |||
xsh_remove_crh_single_param * | crh_single_par, | |||
xsh_rectify_param * | rectify_par, | |||
const int | do_flatfield, | |||
const int | corr_sky, | |||
const int | compute_eff, | |||
const char * | rec_prefix, | |||
cpl_frameset ** | comb_eff_set | |||
) |
Definition at line 789 of file xsh_utils_scired_slit.c.
References check, xsh_rectify_param::conserve_flux, xsh_add_temporary_file(), 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().
cpl_error_code 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, | |||
int | pscan, | |||
const char * | rec_prefix, | |||
const char * | recipe_id | |||
) |
Definition at line 1130 of file xsh_utils_scired_slit.c.
References check, XSH_ARM_NIR, XSH_ASSURE_NOT_ILLEGAL, XSH_ATMOS_EXT, xsh_check_get_map(), xsh_check_load_master_bpmap(), xsh_error_reset, xsh_find_disp_tab(), xsh_find_frame_with_tag(), xsh_find_master_bias(), xsh_find_master_flat(), xsh_find_order_tab_edges(), xsh_find_spectral_format(), xsh_find_wave_tab(), xsh_find_wavemap(), XSH_GET_TAG_FROM_MODE, xsh_instrument_get_arm(), XSH_MASTER_FLAT, XSH_MOD_CFG_OPT_2D, XSH_MOD_CFG_OPT_AFC, XSH_MOD_CFG_TAB, xsh_mode_is_physmod(), XSH_MRESPONSE_MERGE1D_SLIT, 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 1859 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 ** | smap, | |||
cpl_frame ** | spectral_format, | |||
const char * | rec_id | |||
) |
Definition at line 1542 of file xsh_utils_scired_slit.c.
References check, XSH_ARM_NIR, XSH_ASSURE_NOT_ILLEGAL, xsh_check_load_master_bpmap(), xsh_error_reset, xsh_find_frame_with_tag(), xsh_find_master_flat(), xsh_find_order_tab_edges(), xsh_find_slitmap(), 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, XSH_MOD_CFG_TAB, xsh_mode_is_physmod(), and xsh_msg.
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_localize_obj_param ** | loc_obj_par, | |||
xsh_rectify_param ** | rectify_par, | |||
xsh_remove_crh_single_param ** | crh_single_par, | |||
xsh_extract_param ** | extract_par, | |||
xsh_combine_nod_param ** | combine_nod_param, | |||
int * | do_flatfield, | |||
int * | gen_sky | |||
) |
Definition at line 1649 of file xsh_utils_scired_slit.c.
References check, xsh_msg, xsh_parameters_combine_nod_get(), xsh_parameters_extract_get(), xsh_parameters_get_boolean(), xsh_parameters_localize_obj_get(), 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, | |||
const int | clean_tmp | |||
) |
< Output of xsh_subtract_sky_single
< Output of xsh_rectfiy
Definition at line 1691 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_add_temporary_file(), 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_absorp(), 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, | |||
const char * | rec_id, | |||
int * | recipe_use_model, | |||
int | pscan | |||
) |
Definition at line 1432 of file xsh_utils_scired_slit.c.
References check, XSH_ARM_NIR, XSH_ASSURE_NOT_NULL_MSG, xsh_check_load_master_bpmap(), xsh_error_reset, xsh_find_frame_with_tag(), xsh_find_master_bias(), xsh_find_master_dark(), xsh_find_master_flat(), xsh_find_order_tab_edges(), xsh_find_spectral_format(), xsh_find_wave_tab(), XSH_GET_TAG_FROM_MODE, xsh_instrument_get_arm(), xsh_instrument_update_from_spectralformat(), XSH_MASTER_DARK, XSH_MASTER_FLAT, XSH_MASTER_FLAT_SLIT, XSH_MOD_CFG_OPT_2D, XSH_MOD_CFG_OPT_AFC, XSH_MOD_CFG_TAB, xsh_mode_is_physmod(), xsh_msg, xsh_msg_error, xsh_msg_warning, XSH_SKY_LINE_LIST, XSH_SKY_SUB_BKPTS, XSH_SLIT_MAP, xsh_util_physmod_model_THE_create(), and XSH_WAVE_MAP.
Referenced by xsh_absorp(), 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 1815 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_absorp(), 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_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, | |||
int * | do_optextract, | |||
xsh_opt_extract_param ** | opt_extract_par | |||
) |
Definition at line 1607 of file xsh_utils_scired_slit.c.
References check, xsh_parameters_background_get(), xsh_parameters_get_boolean(), xsh_parameters_get_int(), xsh_parameters_localize_obj_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_absorp(), xsh_respon_slit_stare(), and xsh_scired_slit_stare().
cpl_error_code xsh_stare_params_bin_scale | ( | cpl_frameset * | raws, | |
xsh_background_param * | backg, | |||
xsh_opt_extract_param * | opt_extract_par, | |||
int * | sub_sky_nbkpts1, | |||
int * | sub_sky_nbkpts2 | |||
) |
Corrects parameters for binning.
raws | the frames list | |
backg | parameters controlling inter-order background correction | |
opt_extract_par | parameters controlling optimal extraction | |
sub_sky_nbkpts1 | sky background sampling points 1st iteration | |
sub_sky_nbkpts2 | sky background sampling points 2nd iteration |
In case of failure the cpl_error_code is set.
Definition at line 119 of file xsh_utils_scired_slit.c.
References binx, biny, xsh_opt_extract_param::box_hsize, check, xsh_background_param::radius_x, xsh_background_param::radius_y, xsh_free_propertylist(), xsh_pfits_get_binx(), and xsh_pfits_get_biny().
Referenced by xsh_respon_slit_stare(), and xsh_scired_slit_stare().