Some flat utilities operations
[DRL Functions]

Functions

static cpl_error_code xsh_add_qc_tab (cpl_frame *d2_frame, cpl_frame *qth_frame, cpl_frame *merged_frame)
void xsh_flat_merge_qth_d2 (cpl_frame *qth_frame, cpl_frame *qth_order_tab_frame, cpl_frame *d2_frame, cpl_frame *d2_order_tab_frame, cpl_frame *qth_bkg_frame, cpl_frame *d2_bkg_frame, cpl_frame **qth_d2_flat_frame, cpl_frame **qth_d2_bkg_frame, cpl_frame **qth_d2_order_tab_frame, xsh_instrument *instrument)
 Merge two master flat fields and order tables according the spectral format.
cpl_frame * xsh_flat_merge_qth_d2_tabs (cpl_frame *qth_edges_tab, cpl_frame *d2_edges_tab, xsh_instrument *instrument)
 Merge two order edges tables according the spectral format.
void xsh_flat_merge_qth_d2_smooth (cpl_frame *qth_frame, cpl_frame *qth_order_tab_frame, cpl_frame *d2_frame, cpl_frame *d2_order_tab_frame, cpl_frame *qth_bkg_frame, cpl_frame *d2_bkg_frame, cpl_frame **qth_d2_flat_frame, cpl_frame **qth_d2_bkg_frame, cpl_frame **qth_d2_order_tab_frame, xsh_instrument *instrument)
 Merge two master flat fields and order tables according the spectral format.

Detailed Description

Function ...


Function Documentation

static cpl_error_code xsh_add_qc_tab ( cpl_frame *  d2_frame,
cpl_frame *  qth_frame,
cpl_frame *  merged_frame 
) [static]

Definition at line 68 of file xsh_flat_merge.c.

References xsh_free_propertylist(), and xsh_free_table().

Referenced by xsh_flat_merge_qth_d2().

void xsh_flat_merge_qth_d2 ( cpl_frame *  qth_frame,
cpl_frame *  qth_order_tab_frame,
cpl_frame *  d2_frame,
cpl_frame *  d2_order_tab_frame,
cpl_frame *  qth_bkg_frame,
cpl_frame *  d2_bkg_frame,
cpl_frame **  qth_d2_flat_frame,
cpl_frame **  qth_d2_bkg_frame,
cpl_frame **  qth_d2_order_tab_frame,
xsh_instrument instrument 
)

Merge two master flat fields and order tables according the spectral format.

Parameters:
[in] qth_frame QTH master flat
[in] qth_order_tab_frame QTH order edges tab
[in] d2_frame D2 master flat
[in] d2_order_tab_frame D2 order edges tab
[in] qth_bkg_frame QTH inter-order background frame
[in] d2_bkg_frame D2 inter-order background frame
[out] qth_d2_flat_frame Merged flat frame
[out] qth_d2_bkg_frame merged inter-order subtracted background
[out] qth_d2_order_tab_frame merged inter-order table
[in] instrument instrument arm and lamp settings

Definition at line 220 of file xsh_flat_merge.c.

References xsh_order_list::bin_y, xsh_pre::binx, xsh_pre::biny, check, xsh_pre::data, xsh_pre::data_header, xsh_order::edglopoly, xsh_order::edguppoly, xsh_pre::errs, xsh_order_list::list, xsh_pre::nx, xsh_pre::ny, xsh_pre::qual, xsh_order_list::size, x, xsh_add_qc_tab(), XSH_ASSURE_NOT_NULL, xsh_frame_product(), XSH_FREE, xsh_free_image(), XSH_GET_TAG_FROM_LAMP, xsh_instrument_arm_tostring(), xsh_instrument_mode_tostring(), xsh_instrument_update_lamp(), XSH_LAMP_D2, XSH_LAMP_QTH, XSH_LAMP_UNDEFINED, XSH_MASTER_FLAT, xsh_msg_dbg_medium, XSH_NAME_LAMP_MODE_ARM, xsh_order_list_eval_int(), xsh_order_list_free(), 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_TAB_EDGES, xsh_pfits_set_pcatg(), xsh_pre_free(), xsh_pre_load(), xsh_pre_save(), XSH_QC_FLUX_MAX, XSH_QC_FLUX_MIN, XSH_REGDEBUG, and y.

Referenced by main(), and xsh_mflat().

void xsh_flat_merge_qth_d2_smooth ( cpl_frame *  qth_frame,
cpl_frame *  qth_order_tab_frame,
cpl_frame *  d2_frame,
cpl_frame *  d2_order_tab_frame,
cpl_frame *  qth_bkg_frame,
cpl_frame *  d2_bkg_frame,
cpl_frame **  qth_d2_flat_frame,
cpl_frame **  qth_d2_bkg_frame,
cpl_frame **  qth_d2_order_tab_frame,
xsh_instrument instrument 
)

Merge two master flat fields and order tables according the spectral format.

Parameters:
[in] qth_frame QTH master flat
[in] qth_order_tab_frame QTH order edges tab
[in] d2_frame D2 master flat
[in] d2_order_tab_frame D2 order edges tab
[in] qth_bkg_frame QTH inter-order background frame
[in] d2_bkg_frame D2 inter-order background frame
[out] qth_d2_flat_frame Merged flat frame
[out] qth_d2_bkg_frame merged inter-order subtracted background
[out] qth_d2_order_tab_frame merged inter-order table
[in] instrument instrument arm and lamp settings

Definition at line 492 of file xsh_flat_merge.c.

References xsh_order_list::bin_y, xsh_pre::binx, xsh_pre::biny, check, xsh_pre::data, xsh_pre::data_header, xsh_order::edglopoly, xsh_order::edguppoly, xsh_pre::errs, xsh_order_list::list, xsh_pre::nx, xsh_pre::ny, xsh_pre::qual, xsh_order_list::size, x, XSH_ASSURE_NOT_NULL, xsh_combine_flats(), xsh_frame_product(), XSH_FREE, xsh_free_image(), XSH_GET_TAG_FROM_LAMP, xsh_instrument_arm_tostring(), xsh_instrument_mode_tostring(), xsh_instrument_update_lamp(), XSH_LAMP_D2, XSH_LAMP_QTH, XSH_LAMP_UNDEFINED, XSH_MASTER_FLAT, xsh_msg_dbg_medium, XSH_NAME_LAMP_MODE_ARM, xsh_order_list_eval_int(), xsh_order_list_free(), 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_TAB_EDGES, xsh_pfits_set_pcatg(), xsh_pre_free(), xsh_pre_load(), xsh_pre_save(), XSH_QC_FLUX_MAX, XSH_QC_FLUX_MIN, XSH_REGDEBUG, and y.

cpl_frame* xsh_flat_merge_qth_d2_tabs ( cpl_frame *  qth_edges_tab,
cpl_frame *  d2_edges_tab,
xsh_instrument instrument 
)

Merge two order edges tables according the spectral format.

Parameters:
[in] qth_order_tab_frame QTH order edges tab
[in] d2_order_tab_frame D2 order edges tab
[in] instrument instrument arm and lamp settings
Returns:
merged order edges table

Definition at line 432 of file xsh_flat_merge.c.

References xsh_instrument::binx, xsh_instrument::biny, xsh_instrument::config, XSH_INSTRCONFIG::ny, XSH_FREE, XSH_GET_TAG_FROM_LAMP, xsh_instrument_update_lamp(), XSH_LAMP_D2, XSH_LAMP_QTH, XSH_LAMP_UNDEFINED, xsh_msg, XSH_NAME_LAMP_MODE_ARM, xsh_order_list_free(), xsh_order_list_load(), xsh_order_list_merge(), xsh_order_list_save(), xsh_order_list_set_bin_x(), xsh_order_list_set_bin_y(), and XSH_ORDER_TAB_EDGES.

Referenced by xsh_mflat().


Generated on 13 Mar 2013 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1