Combine rectified NOD Frames
[DRL Functions]

Functions

static void xsh_compute_slit_index (float slit_min, float slit_step, xsh_rec_list **from, int *slit_index_tab, int size)
static void xsh_rec_list_add (xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp)
cpl_frame * xsh_combine_nod (cpl_frameset *nod_frames, xsh_combine_nod_param *nod_par, const char *tag, xsh_instrument *instrument, cpl_frame **res_frame_ext)

Detailed Description

Function ...


Function Documentation

cpl_frame* xsh_combine_nod ( cpl_frameset *  nod_frames,
xsh_combine_nod_param nod_par,
const char *  tag,
xsh_instrument instrument,
cpl_frame **  res_frame_ext 
)

Adds (combine) all the shifted rectified frames (nodding). Combination is made for each order.

Parameters:
nod_frames Frameset of the shifted rectified frames
nod_par Parameters of combination
tag pro catg of combined frame
instrument Instrument description
res_frame_ext combined frame in ESO format
Returns:
The combined frame, inf/upp suggested values for extraction

Definition at line 206 of file xsh_combine_nod.c.

References check, COMBINE_METHOD_PRINT, xsh_instrument::decode_bp, xsh_rec_list::header, lambda_step, xsh_combine_nod_param::method, xsh_rec_list::size, xsh_rec_list::slit_max, xsh_rec_list::slit_min, slit_step, xsh_add_temporary_file(), XSH_ASSURE_NOT_NULL, XSH_CALLOC, xsh_compute_slit_index(), XSH_FREE, xsh_free_frame(), xsh_msg, 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_set_extract_slit_max(), xsh_pfits_set_extract_slit_min(), xsh_pfits_set_pcatg(), 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_rec_list_add(), xsh_rec_list_create_with_size(), xsh_rec_list_free(), xsh_rec_list_get_header(), xsh_rec_list_get_lambda(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_nslit(), xsh_rec_list_get_order(), xsh_rec_list_get_slit(), xsh_rec_list_load(), xsh_rec_list_save(), xsh_rec_list_save2(), xsh_rec_list_set_data_size(), and xsh_stringcat_any().

Referenced by main(), xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_scired_slit_nod(), and xsh_scired_slit_offset().

static void xsh_compute_slit_index ( float  slit_min,
float  slit_step,
xsh_rec_list **  from,
int *  slit_index_tab,
int  size 
) [static]

Definition at line 71 of file xsh_combine_nod.c.

References check, XSH_ASSURE_NOT_NULL, xsh_rec_list_get_slit(), and xsh_round_double().

Referenced by xsh_combine_nod().

static void xsh_rec_list_add ( xsh_rec_list dest,
xsh_rec_list **  from,
int *  slit_index,
int  nb_frames,
int  no,
int  method,
const int  decode_bp 
) [static]

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