Blaze handling
[DRL Functions]

Functions

cpl_frame * xsh_divide_by_blaze (cpl_frame *pre_frame, cpl_frame *blaze_frame, xsh_instrument *instrument)
 Divide a pre image by the blaze image.
cpl_frame * xsh_blaze_image (cpl_frame *masterflat_frame, cpl_frame *order_frame, xsh_instrument *instrument)
 Normalize a master flat frame order by order.
cpl_image * xsh_create_blaze (cpl_frame *masterflat_frame, xsh_order_list *order_list, xsh_instrument *instrument)
 Normalize a master flat frame order by order.

Function Documentation

cpl_frame* xsh_blaze_image ( cpl_frame *  masterflat_frame,
cpl_frame *  order_frame,
xsh_instrument instrument 
)

Normalize a master flat frame order by order.

Parameters:
[in] masterflat_frame The master flat frame
[in] order_frame The order list frame
[in] instrument The instrument structure
Returns:
The normalized master flat frame

Definition at line 143 of file xsh_blaze.c.

References check, XSH_ASSURE_NOT_NULL, xsh_create_blaze(), xsh_free_frame(), xsh_free_image(), xsh_order_list_free(), and xsh_order_list_load().

Referenced by xsh_geom_ifu().

cpl_image* xsh_create_blaze ( cpl_frame *  masterflat_frame,
xsh_order_list order_list,
xsh_instrument instrument 
)

Normalize a master flat frame order by order.

Parameters:
[in] masterflat_frame The master flat frame
[in] order_list The order list given order position
[in] instrument The instrument structure
Returns:
The normalized master flat frame

Definition at line 197 of file xsh_blaze.c.

References xsh_order::absorder, xsh_order_list::bin_x, xsh_order_list::bin_y, xsh_pre::binx, xsh_pre::biny, xsh_order::blazepoly, xsh_order::cenpoly, check, xsh_pre::data, xsh_order::edglopoly, xsh_order::edguppoly, xsh_order_list::list, MSE_LIMIT, nx, ny, xsh_order_list::size, XSH_ASSURE_NOT_NULL, XSH_CMP_INT, XSH_FREE, xsh_free_image(), xsh_free_polynomial(), XSH_MALLOC, xsh_msg, xsh_msg_dbg_medium, xsh_order_list_eval_int(), xsh_order_list_get_endy(), xsh_order_list_get_starty(), xsh_polynomial_fit_1d_create(), xsh_pre_free(), xsh_pre_load(), xsh_unwrap_vector(), and y.

Referenced by xsh_blaze_image(), and xsh_opt_extract_orders().

cpl_frame* xsh_divide_by_blaze ( cpl_frame *  pre_frame,
cpl_frame *  blaze_frame,
xsh_instrument instrument 
)

Divide a pre image by the blaze image.

Parameters:
[in] pre_frame The PRE frame
[in] blaze_frame The blaze image frame
[in] instrument The instrument structure
Returns:
The normalized master flat frame

Definition at line 71 of file xsh_blaze.c.

References check, xsh_pre::data, xsh_pre::errs, xsh_pre::nx, xsh_pre::ny, XSH_ASSURE_NOT_NULL, xsh_free_frame(), xsh_free_image(), xsh_pre_free(), xsh_pre_load(), and xsh_pre_save().

Referenced by xsh_geom_ifu().


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