|
X-shooter Pipeline Reference Manual 3.8.15
|
Macros | |
| #define | combine_nod_old 0 |
Functions | |
| void | xsh_compute_slit_index (float slit_min, float slit_step, xsh_rec_list **from, int *slit_index_tab, int size) |
| static cpl_imagelist * | xsh_compute_scale_factors_by_object (cpl_imagelist *scaled, cpl_image *scale, const int nlambda, const int nslit, const int no, const double smin, const double smax) |
| static cpl_imagelist * | xsh_compute_scale_factors_by_slice (cpl_imagelist *scaled, cpl_image *scale, const int nlambda, const int nslit, const int no) |
| static cpl_imagelist * | xsh_compute_scale_factors_pix_pix (cpl_imagelist *scaled, cpl_image *scale, const int nlambda, const int nslit, const int no) |
| static cpl_table * | xsh_qual2tab_frames (int nframes, const int code, int *slit_index, xsh_rec_list *dest, xsh_rec_list **from, const int no) |
| static cpl_imagelist * | xsh_find_image_scale_factors (xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp, int scale_method) |
| static cpl_error_code | xsh_rec_list_qc (xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp, const int nf) |
| 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_error_code | xsh_correct_scale_w (xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp, cpl_imagelist *scale_factors, const int scale_method, const cpl_table *bp) |
| cpl_error_code | xsh_correct_scale (xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp, cpl_imagelist *scale_factors, const int scale_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, const int scale_nod) |
Function ...
| #define combine_nod_old 0 |
Definition at line 62 of file xsh_combine_nod.c.
| 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, | ||
| const int | scale_nod | ||
| ) |
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 2010 of file xsh_combine_nod.c.
References check, COMBINE_METHOD_PRINT, xsh_instrument::decode_bp, xsh_rec_list::header, instrument, 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_correct_scale(), xsh_correct_scale_w(), xsh_find_image_scale_factors(), XSH_FREE, xsh_free_frame(), xsh_free_imagelist(), xsh_msg, xsh_pfits_get_qc_ncrh(), 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_qc_ncrh_mean(), xsh_pfits_set_qc_ncrh_tot(), 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_print_rec_status(), XSH_QC_CRH_NUMBER, xsh_qual2tab_frames(), 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_qc(), 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 |
Definition at line 463 of file xsh_combine_nod.c.
Referenced by xsh_find_image_scale_factors().
|
static |
Definition at line 517 of file xsh_combine_nod.c.
Referenced by xsh_find_image_scale_factors().
|
static |
Definition at line 567 of file xsh_combine_nod.c.
References check, and xsh_print_rec_status().
Referenced by xsh_find_image_scale_factors().
| void xsh_compute_slit_index | ( | float | slit_min, |
| float | slit_step, | ||
| xsh_rec_list ** | from, | ||
| int * | slit_index_tab, | ||
| int | size | ||
| ) |
Definition at line 72 of file xsh_combine_nod.c.
References check, size, slit_step, XSH_ASSURE_NOT_NULL, xsh_rec_list_get_slit(), and xsh_round_double().
Referenced by test_combine_lists(), and xsh_combine_nod().
| cpl_error_code xsh_correct_scale | ( | xsh_rec_list * | dest, |
| xsh_rec_list ** | from, | ||
| int * | slit_index, | ||
| int | nb_frames, | ||
| int | no, | ||
| int | method, | ||
| const int | decode_bp, | ||
| cpl_imagelist * | scale_factors, | ||
| const int | scale_method | ||
| ) |
Definition at line 1794 of file xsh_combine_nod.c.
References xsh_rec_list::header, m, QFLAG_INCOMPLETE_NOD, QFLAG_SCALED_NOD, size, slit_step, XSH_ASSURE_NOT_NULL, xsh_msg, xsh_pfits_get_rectify_bin_space(), xsh_qual2tab(), xsh_rec_get_nod_extract_slit_min_max(), xsh_rec_list_get_data1(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_nslit(), and xsh_rec_list_get_qual1().
Referenced by xsh_combine_nod().
| cpl_error_code xsh_correct_scale_w | ( | xsh_rec_list * | dest, |
| xsh_rec_list ** | from, | ||
| int * | slit_index, | ||
| int | nb_frames, | ||
| int | no, | ||
| int | method, | ||
| const int | decode_bp, | ||
| cpl_imagelist * | scale_factors, | ||
| const int | scale_method, | ||
| const cpl_table * | bp | ||
| ) |
Definition at line 1587 of file xsh_combine_nod.c.
References xsh_rec_list::header, m, QFLAG_INCOMPLETE_NOD, QFLAG_SCALED_NOD, size, slit_step, XSH_ASSURE_NOT_NULL, xsh_msg, xsh_pfits_get_rectify_bin_space(), xsh_qual2tab(), xsh_rec_get_nod_extract_slit_min_max(), xsh_rec_list_get_data1(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_nslit(), and xsh_rec_list_get_qual1().
Referenced by xsh_combine_nod().
|
static |
Definition at line 804 of file xsh_combine_nod.c.
References check, xsh_rec_list::header, slit_step, xsh_compute_scale_factors_by_object(), xsh_compute_scale_factors_by_slice(), xsh_compute_scale_factors_pix_pix(), xsh_pfits_get_rectify_bin_space(), xsh_print_rec_status(), xsh_rec_get_nod_extract_slit_min_max(), xsh_rec_list_get_data1(), xsh_rec_list_get_errs1(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_nslit(), and xsh_rec_list_get_qual1().
Referenced by xsh_combine_nod().
|
static |
Definition at line 733 of file xsh_combine_nod.c.
References m, size, xsh_msg, xsh_rec_list_get_nlambda(), xsh_rec_list_get_nslit(), and xsh_rec_list_get_qual1().
Referenced by xsh_combine_nod().
| 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 | ||
| ) |
Definition at line 1413 of file xsh_combine_nod.c.
References check, COMBINE_MEAN_METHOD, method, QFLAG_GOOD_PIXEL, QFLAG_INCOMPLETE_NOD, XSH_ASSURE_NOT_NULL, XSH_FREE, xsh_free_frame(), xsh_free_table(), XSH_MALLOC, xsh_msg_dbg_high, xsh_msg_dbg_medium, xsh_qual2tab(), 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 test_combine_lists(), and xsh_combine_nod().
|
static |
Definition at line 1329 of file xsh_combine_nod.c.
References check, xsh_add_temporary_file(), XSH_ASSURE_NOT_NULL, xsh_free_frame(), 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(), and xsh_rec_list_save2().
Referenced by xsh_combine_nod().