|
X-shooter Pipeline Reference Manual 3.8.15
|
Macros | |
| #define | RECIPE_ID "xsh_mflat" |
| #define | RECIPE_AUTHOR "P.Goldoni, L.Guglielmi, R. Haigron, F. Royer, D. Bramich, A. Modigliani" |
| #define | RECIPE_CONTACT "amodigli@eso.org" |
Functions | |
| static int | xsh_mflat_create (cpl_plugin *plugin) |
| Setup the recipe options. | |
| static int | xsh_mflat_exec (cpl_plugin *plugin) |
| Execute the plugin instance given by the interface. | |
| static int | xsh_mflat_destroy (cpl_plugin *plugin) |
| Destroy what has been created by the 'create' function. | |
| static void | xsh_mflat (cpl_parameterlist *parameters, cpl_frameset *frameset) |
| Interpret the command line options and execute the data processing. | |
| static cpl_error_code | xsh_qc_flats_raw (cpl_frameset *fset, xsh_instrument *instrument, cpl_propertylist *qclist) |
| static cpl_error_code | xsh_qc_flats_raw_subset (cpl_frameset *fset, xsh_instrument *instrument, cpl_propertylist *qclist) |
| static cpl_error_code | xsh_qc_flats_uvb_exp_norm (cpl_frame *q, cpl_frame *d, xsh_instrument *instrument, cpl_propertylist *qclist) |
| int | cpl_plugin_get_info (cpl_pluginlist *list) |
| Build the list of available plugins, for this module. | |
| static cpl_frame * | xsh_mflat_combine_flats (cpl_frameset *raw_set, cpl_frameset *on_set, cpl_frameset *off_set, cpl_frame *bpmap_frame, cpl_frame *master_bias_frame, cpl_frame *master_dark_frame, cpl_frame *cen_order_tab_frame, xsh_instrument *instrument, xsh_stack_param *stack_par, const int pre_overscan_corr) |
| static void | xsh_combine_flats_and_detect_edges (cpl_frameset *raw_set, cpl_frameset *on_set, cpl_frameset *off_set, cpl_frame *bpmap_frame, cpl_frame *master_bias_frame, cpl_frame *master_dark_frame, cpl_frame *cen_order_tab_frame, cpl_frame *qc_cen_order_tab_frame, xsh_stack_param *stack_par, xsh_detect_order_param *detectorder_par, const int pre_overscan_corr, cpl_frame **edges_order_tab_frame, cpl_frame **rmdark, xsh_instrument *instrument) |
| static cpl_error_code | xsh_params_bin_scale (cpl_frameset *raws, xsh_background_param *backg, xsh_detect_order_param *det_order) |
| Rescale parameters for binning. | |
| static cpl_error_code | xsh_params_set_defaults (cpl_parameterlist *pars, xsh_instrument *inst, xsh_detect_order_param *det_order, xsh_background_param *backg) |
| static cpl_error_code | xsh_qc_write_to_flat (cpl_frame *mflat, xsh_instrument *instrument, cpl_propertylist *qclist) |
Variables | |
| static char | xsh_mflat_description_short [] |
| static char | xsh_mflat_description [] |
This recipe calculates the master flat frame See man-page for details.
| #define RECIPE_AUTHOR "P.Goldoni, L.Guglielmi, R. Haigron, F. Royer, D. Bramich, A. Modigliani" |
Definition at line 74 of file xsh_mflat.c.
| #define RECIPE_CONTACT "amodigli@eso.org" |
Definition at line 75 of file xsh_mflat.c.
| #define RECIPE_ID "xsh_mflat" |
Definition at line 73 of file xsh_mflat.c.
| int cpl_plugin_get_info | ( | cpl_pluginlist * | list | ) |
Build the list of available plugins, for this module.
| list | the plugin list |
Create the recipe instance and make it available to the application using the interface. This function is exported.
Definition at line 147 of file xsh_mflat.c.
References RECIPE_AUTHOR, RECIPE_CONTACT, RECIPE_ID, xsh_get_license(), xsh_mflat_create(), xsh_mflat_description, xsh_mflat_description_short, xsh_mflat_destroy(), and xsh_mflat_exec().
|
static |
Definition at line 401 of file xsh_mflat.c.
References check, instrument, xsh_detect_order_edge(), xsh_mflat_combine_flats(), xsh_monitor_flux(), xsh_msg, and XSH_QC_FLUX.
Referenced by xsh_mflat().
|
static |
Interpret the command line options and execute the data processing.
| parameters | the parameters list |
| frameset | the frames list |
In case of failure the cpl_error_code is set.
Definition at line 854 of file xsh_mflat.c.
References xsh_instrument::arm, check, instrument, xsh_instrument::lamp, xsh_detect_order_param::min_sn, xsh_d2_detect_order_param::min_sn, RECIPE_ID, xsh_add_product_image(), xsh_add_product_pre(), xsh_add_product_table(), XSH_ARM_NIR, XSH_ARM_UVB, XSH_ARM_VIS, XSH_ASSURE_NOT_ILLEGAL_MSG, xsh_begin(), xsh_check_load_master_bpmap(), xsh_combine_flats_and_detect_edges(), xsh_create_master_flat_with_mask(), xsh_dfs_split_nir(), xsh_dfs_split_qth_d2(), xsh_end(), xsh_error_reset, xsh_find_frame_with_tag(), xsh_find_order_tab_centr(), XSH_FLAT, xsh_flat_merge_qth_d2(), xsh_flat_merge_qth_d2_tabs(), XSH_FREE, xsh_free_frame(), xsh_free_frameset(), xsh_free_propertylist(), xsh_free_table(), xsh_image_mflat_detect_blemishes(), xsh_instrument_arm_tostring(), xsh_instrument_free(), xsh_instrument_get_arm(), xsh_instrument_mode_tostring(), xsh_instrument_nir_corr_if_JH(), xsh_instrument_update_from_spectralformat(), xsh_instrument_update_lamp(), XSH_LAMP_D2, XSH_LAMP_QTH, XSH_LAMP_QTH_D2, XSH_LAMP_UNDEFINED, XSH_MASTER_BIAS, XSH_MASTER_DARK, xsh_mflat_description_short, xsh_msg, xsh_msg_warning, xsh_order_split_qth_d2(), xsh_parameters_background_get(), xsh_parameters_d2_detect_order_get(), xsh_parameters_detect_order_get(), xsh_parameters_get_int(), xsh_params_bin_scale(), xsh_params_set_defaults(), xsh_qc_flats_raw(), xsh_qc_flats_raw_subset(), xsh_qc_flats_uvb_exp_norm(), xsh_qc_write_to_flat(), xsh_recipe_params_check(), XSH_SPECTRAL_FORMAT, xsh_stack_frames_get(), and xsh_subtract_background().
Referenced by xsh_mflat_exec().
|
static |
Definition at line 310 of file xsh_mflat.c.
References check, instrument, XSH_ARM_NIR, xsh_create_master_flat2(), XSH_FLAT, xsh_free_frameset(), xsh_instrument_get_arm(), xsh_monitor_flux(), xsh_msg, xsh_prepare(), XSH_QC_RAW_FLUX, xsh_subtract_bias(), xsh_subtract_dark(), and xsh_subtract_nir_on_off().
Referenced by xsh_combine_flats_and_detect_edges().
|
static |
Setup the recipe options.
| plugin | the plugin |
Create the recipe instance and make it available to the application using the interface.
Definition at line 189 of file xsh_mflat.c.
References assure, check, RECIPE_ID, xsh_error_dump, xsh_init(), xsh_parameters_background_create(), xsh_parameters_d2_detect_order_create(), xsh_parameters_decode_bp(), xsh_parameters_detect_order_create(), xsh_parameters_generic(), xsh_parameters_pre_overscan(), and xsh_parameters_stack_create().
Referenced by cpl_plugin_get_info().
|
static |
Destroy what has been created by the 'create' function.
| plugin | the plugin |
Definition at line 283 of file xsh_mflat.c.
References assure, and xsh_free_parameterlist().
Referenced by cpl_plugin_get_info().
|
static |
Execute the plugin instance given by the interface.
| plugin | the plugin |
Definition at line 249 of file xsh_mflat.c.
References assure, xsh_error_dump, and xsh_mflat().
Referenced by cpl_plugin_get_info().
|
static |
Rescale parameters for binning.
| raws | raw frames set |
| backg | parameters to control inter-order background subtraction |
| det_order | parameters to control order edges detection In case of failure the cpl_error_code is set. |
Definition at line 446 of file xsh_mflat.c.
References binx, biny, check, xsh_detect_order_param::min_order_size_x, xsh_background_param::radius_x, xsh_background_param::radius_y, xsh_detect_order_param::search_window_hsize, xsh_free_propertylist(), xsh_pfits_get_binx(), and xsh_pfits_get_biny().
Referenced by xsh_mflat().
|
static |
Definition at line 488 of file xsh_mflat.c.
References check, xsh_detect_order_param::min_order_size_x, xsh_detect_order_param::min_sn, RECIPE_ID, XSH_ARM_NIR, XSH_ARM_UVB, xsh_instrument_get_arm(), xsh_instrument_get_mode(), XSH_MODE_IFU, and xsh_parameters_find().
Referenced by xsh_mflat().
|
static |
Definition at line 542 of file xsh_mflat.c.
References instrument, nx, ny, XSH_ARM_NIR, and xsh_instrument_get_arm().
Referenced by xsh_mflat().
|
static |
Definition at line 637 of file xsh_mflat.c.
Referenced by xsh_mflat().
|
static |
Definition at line 611 of file xsh_mflat.c.
Referenced by xsh_mflat().
|
static |
Definition at line 661 of file xsh_mflat.c.
References binx, xsh_instrument::binx, biny, xsh_instrument::biny, calc_flat_slit_qc(), xsh_pre::data, xsh_pre::data_header, instrument, XSH_ARM_NIR, XSH_ARM_UVB, XSH_ARM_VIS, xsh_instrument_get_arm(), xsh_instrument_get_mode(), XSH_MODE_IFU, xsh_pre_free(), xsh_pre_load(), and xsh_pre_save().
Referenced by xsh_mflat().
|
static |
Definition at line 101 of file xsh_mflat.c.
Referenced by cpl_plugin_get_info().
|
static |
Definition at line 98 of file xsh_mflat.c.
Referenced by cpl_plugin_get_info(), and xsh_mflat().