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) |
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) |
Function ...
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.
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 |
Definition at line 211 of file xsh_combine_nod.c.
References check, COMBINE_METHOD_PRINT, 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_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 | |||
) | [static] |
Definition at line 91 of file xsh_combine_nod.c.
References check, COMBINE_MEAN_METHOD, QFLAG_GOOD_PIXEL, XSH_ASSURE_NOT_NULL, XSH_FREE, XSH_GOOD_PIXEL_LEVEL, XSH_MALLOC, xsh_msg_dbg_high, xsh_msg_dbg_medium, xsh_rec_list_get_data1(), xsh_rec_list_get_errs1(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_nslit(), xsh_rec_list_get_qual1(), xsh_unwrap_vector(), xsh_vector_get_err_mean(), and xsh_vector_get_err_median().
Referenced by xsh_combine_nod().