Functions | |
void | xsh_rec_list_dump (xsh_rec_list *list, const char *fname) |
xsh_rec_list * | xsh_rec_list_create (xsh_instrument *instr) |
Create an empty order list. | |
xsh_rec_list * | xsh_rec_list_create_with_size (int size, xsh_instrument *instr) |
Create an empty order list. | |
void | xsh_rec_list_set_data_size (xsh_rec_list *list, int idx, int absorder, int nlambda, int ns) |
Allocate memory for the order idx of the rectify list. | |
xsh_rec_list * | xsh_rec_list_duplicate (xsh_rec_list *old, xsh_instrument *instrument) |
xsh_rec_list * | xsh_rec_list_load (cpl_frame *frame, xsh_instrument *instrument) |
load an rec list from a frame | |
xsh_rec_list * | xsh_rec_list_load_eso (cpl_frame *frame, xsh_instrument *instrument) |
cpl_frame * | xsh_rec_list_frame_invert (cpl_frame *rec_frame, const char *tag, xsh_instrument *instrument) |
Invert the rectified flux images of the input frame into a new frame. | |
void | xsh_rec_list_free (xsh_rec_list **list) |
free memory associated to a rec_list | |
cpl_propertylist * | xsh_rec_list_get_header (xsh_rec_list *list) |
get header of the table | |
int | xsh_rec_list_get_nslit (xsh_rec_list *list, int idx) |
int | xsh_rec_list_get_order (xsh_rec_list *list, int idx) |
int | xsh_rec_list_get_nlambda (xsh_rec_list *list, int idx) |
float * | xsh_rec_list_get_slit (xsh_rec_list *list, int idx) |
double | xsh_rec_list_get_slit_min (xsh_rec_list *list) |
double | xsh_rec_list_get_slit_max (xsh_rec_list *list) |
double | xsh_rec_list_get_lambda_min (xsh_rec_list *list) |
double | xsh_rec_list_get_lambda_max (xsh_rec_list *list) |
cpl_error_code | xsh_rec_list_set_slit_min (xsh_rec_list *list, const double val) |
cpl_error_code | xsh_rec_list_set_slit_max (xsh_rec_list *list, const double val) |
double * | xsh_rec_list_get_lambda (xsh_rec_list *list, int idx) |
float * | xsh_rec_list_get_data1 (xsh_rec_list *list, int idx) |
float * | xsh_rec_list_get_errs1 (xsh_rec_list *list, int idx) |
int * | xsh_rec_list_get_qual1 (xsh_rec_list *list, int idx) |
cpl_frame * | xsh_rec_list_save (xsh_rec_list *list, const char *filename, const char *tag, int is_temp) |
Save a rec list in a frame. | |
void | xsh_rec_list_update_header (xsh_rec_list *rec_list, xsh_pre *pre, xsh_rectify_param *rec_par, const char *pro_catg) |
Update header of rectified list writing mandatory KW. | |
cpl_frame * | xsh_rec_list_save_table (xsh_rec_list *list, const char *filename, const char *tag, int is_temp) |
Save a rec list in a frame. | |
cpl_frame * | xsh_rec_list_save2 (xsh_rec_list *list, const char *filename, const char *tag) |
save an rec list to a frame | |
void | xsh_rec_get_nod_kw (cpl_frame *rec_frame, double *throw, double *jitter, double *reloffset, double *cumoffset) |
void xsh_rec_get_nod_kw | ( | cpl_frame * | rec_frame, | |
double * | throw, | |||
double * | jitter, | |||
double * | reloffset, | |||
double * | cumoffset | |||
) |
Definition at line 1554 of file xsh_data_rec.c.
References check, XSH_ASSURE_NOT_NULL, xsh_free_propertylist(), xsh_pfits_get_nod_cumoffset(), xsh_pfits_get_nod_jitterwidth(), xsh_pfits_get_nod_reloffset(), and xsh_pfits_get_nodthrow().
xsh_rec_list* xsh_rec_list_create | ( | xsh_instrument * | instr | ) |
Create an empty order list.
[in] | instr | The instrument in use |
Definition at line 100 of file xsh_data_rec.c.
References check, xsh_instrument::config, XSH_INSTRCONFIG::orders, size, XSH_ARM_NIR, XSH_ARM_UVB, XSH_ARM_VIS, XSH_ASSURE_NOT_NULL, xsh_instrument_get_arm(), xsh_rec_list_create_with_size(), xsh_rec_list_free(), XSH_REC_TABLE_NB_NIR_ORDERS, XSH_REC_TABLE_NB_UVB_ORDERS, and XSH_REC_TABLE_NB_VIS_ORDERS.
Referenced by xsh_build_ifu_cube(), xsh_opt_extract_orders(), xsh_rec_list_duplicate(), xsh_rectify_orders(), and xsh_util_ifu_build_cube().
xsh_rec_list* xsh_rec_list_create_with_size | ( | int | size, | |
xsh_instrument * | instr | |||
) |
Create an empty order list.
[in] | size | size of list structure |
[in] | instr | The instrument in use |
Definition at line 147 of file xsh_data_rec.c.
References xsh_rec_list::header, xsh_rec_list::instrument, xsh_rec_list::list, xsh_rec_list::nslit, xsh_rec_list::size, xsh_rec_list::slit_max, xsh_rec_list::slit_min, XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, XSH_CALLOC, XSH_NEW_PROPERTYLIST, and xsh_rec_list_free().
Referenced by concat_rec(), xsh_combine_nod(), xsh_extract_with_tag(), xsh_rec_list_create(), and xsh_wavemap_list_build_sky().
void xsh_rec_list_dump | ( | xsh_rec_list * | list, | |
const char * | fname | |||
) |
Dump main info about a rec table (for each order of the list)
list | pointer to table list | |
fname | File name |
Definition at line 62 of file xsh_data_rec.c.
References xsh_rec_list::list, xsh_rec::nlambda, xsh_rec::nslit, xsh_rec::order, xsh_rec_list::size, and XSH_ASSURE_NOT_NULL.
xsh_rec_list* xsh_rec_list_duplicate | ( | xsh_rec_list * | old, | |
xsh_instrument * | instrument | |||
) |
Definition at line 226 of file xsh_data_rec.c.
References check, xsh_rec_list::header, xsh_rec_list::instrument, order, xsh_rec_list::size, xsh_instrument_duplicate(), xsh_rec_list_create(), xsh_rec_list_get_data1(), xsh_rec_list_get_errs1(), xsh_rec_list_get_lambda(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_nslit(), xsh_rec_list_get_order(), xsh_rec_list_get_qual1(), xsh_rec_list_get_slit(), and xsh_rec_list_set_data_size().
Referenced by shift_with_localization().
cpl_frame* xsh_rec_list_frame_invert | ( | cpl_frame * | rec_frame, | |
const char * | tag, | |||
xsh_instrument * | instrument | |||
) |
Invert the rectified flux images of the input frame into a new frame.
rec_frame | In/out rectified frame | |
tag | Output Tag | |
instrument | Pointer to xsh_instrument structure |
Definition at line 666 of file xsh_data_rec.c.
References check, xsh_rec_list::size, XSH_ASSURE_NOT_NULL, xsh_rec_list_free(), xsh_rec_list_get_data1(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_nslit(), xsh_rec_list_load(), and xsh_rec_list_save().
Referenced by main(), xsh_nod_rectify_and_shift_with_key(), and xsh_scired_slit_nod_accurate().
void xsh_rec_list_free | ( | xsh_rec_list ** | list | ) |
free memory associated to a rec_list
list | the rec_list to free |
Definition at line 713 of file xsh_data_rec.c.
References xsh_rec::data1, xsh_rec::errs1, xsh_rec::lambda, xsh_rec_list::list, xsh_rec::order, xsh_rec::qual1, xsh_rec_list::size, xsh_rec::slit, xsh_free_propertylist(), and xsh_msg_dbg_high.
Referenced by analyse_extraction(), analyse_rectify(), concat_rec(), create_rectify_nod_list(), create_zero_rectify(), shift_with_localization(), xsh_build_ifu_cube(), xsh_combine_nod(), xsh_compute_slice_dist(), xsh_extract_with_tag(), xsh_merge_ord_with_tag(), xsh_opt_extract_orders(), xsh_rec_list_create(), xsh_rec_list_create_with_size(), xsh_rec_list_frame_invert(), xsh_rectify_orders(), xsh_shift(), xsh_subtract_sky_single(), xsh_util_ifu_build_cube(), and xsh_wavemap_list_build_sky().
float* xsh_rec_list_get_data1 | ( | xsh_rec_list * | list, | |
int | idx | |||
) |
Return the data1 buffer from a xsh_rec_list structure.
list | Rectify structure pointer | |
idx | Index in the list |
Definition at line 998 of file xsh_data_rec.c.
References xsh_rec::data1, xsh_rec_list::list, and XSH_ASSURE_NOT_NULL.
Referenced by analyse_extraction(), analyse_rectify(), concat_rec(), create_zero_rectify(), fill_rectified(), shift_with_localization(), xsh_extract_with_tag(), xsh_merge_ord_with_tag(), xsh_rec_list_add(), xsh_rec_list_duplicate(), xsh_rec_list_frame_invert(), xsh_rec_list_rectify(), xsh_wavelist_subtract_sky(), and xsh_wavemap_list_build_sky().
float* xsh_rec_list_get_errs1 | ( | xsh_rec_list * | list, | |
int | idx | |||
) |
Return the errs1 buffer from a xsh_rec_list structure.
list | Rectify structure pointer | |
idx | Index in the list |
Definition at line 1017 of file xsh_data_rec.c.
References xsh_rec::errs1, xsh_rec_list::list, and XSH_ASSURE_NOT_NULL.
Referenced by analyse_extraction(), concat_rec(), fill_rectified(), shift_with_localization(), xsh_extract_with_tag(), xsh_merge_ord_with_tag(), xsh_rec_list_add(), xsh_rec_list_duplicate(), xsh_rec_list_rectify(), xsh_wavelist_subtract_sky(), and xsh_wavemap_list_build_sky().
cpl_propertylist* xsh_rec_list_get_header | ( | xsh_rec_list * | list | ) |
get header of the table
list | the rec_list |
Definition at line 762 of file xsh_data_rec.c.
References xsh_rec_list::header, and XSH_ASSURE_NOT_NULL.
Referenced by xsh_combine_nod().
double* xsh_rec_list_get_lambda | ( | xsh_rec_list * | list, | |
int | idx | |||
) |
Return the lambda buffer from a xsh_rec_list structure.
list | Rectify structure pointer | |
idx | Index in the list |
Definition at line 979 of file xsh_data_rec.c.
References xsh_rec::lambda, xsh_rec_list::list, and XSH_ASSURE_NOT_NULL.
Referenced by analyse_extraction(), concat_rec(), fill_rectified(), shift_with_localization(), xsh_combine_nod(), xsh_extract_with_tag(), xsh_merge_ord_with_tag(), xsh_rec_list_duplicate(), xsh_wavelist_subtract_sky(), and xsh_wavemap_list_build_sky().
double xsh_rec_list_get_lambda_max | ( | xsh_rec_list * | list | ) |
Definition at line 910 of file xsh_data_rec.c.
References xsh_rec::lambda, xsh_rec_list::list, xsh_rec::nlambda, xsh_rec_list::size, and XSH_ASSURE_NOT_NULL.
Referenced by xsh_compute_slice_dist(), xsh_opt_extract_orders(), and xsh_rec_list_update_header().
double xsh_rec_list_get_lambda_min | ( | xsh_rec_list * | list | ) |
Definition at line 888 of file xsh_data_rec.c.
References xsh_rec::lambda, xsh_rec_list::list, xsh_rec_list::size, and XSH_ASSURE_NOT_NULL.
Referenced by xsh_opt_extract_orders(), and xsh_rec_list_update_header().
int xsh_rec_list_get_nlambda | ( | xsh_rec_list * | list, | |
int | idx | |||
) |
Return the number of lambda from a xsh_rec_list structure.
list | Rectify structure pointer | |
idx | Index in the list |
Definition at line 818 of file xsh_data_rec.c.
References xsh_rec_list::list, xsh_rec::nlambda, and XSH_ASSURE_NOT_NULL.
Referenced by analyse_extraction(), analyse_rectify(), concat_rec(), create_zero_rectify(), fill_rectified(), shift_with_localization(), xsh_combine_nod(), xsh_extract_with_tag(), xsh_merge_ord_with_tag(), xsh_rec_list_add(), xsh_rec_list_duplicate(), xsh_rec_list_frame_invert(), and xsh_wavelist_subtract_sky().
int xsh_rec_list_get_nslit | ( | xsh_rec_list * | list, | |
int | idx | |||
) |
Return the number of slit from a xsh_rec_list structure.
list | Rectify structure pointer | |
idx | Index in the list |
Definition at line 780 of file xsh_data_rec.c.
References xsh_rec_list::list, xsh_rec::nslit, and XSH_ASSURE_NOT_NULL.
Referenced by analyse_rectify(), concat_rec(), create_zero_rectify(), fill_rectified(), shift_with_localization(), xsh_combine_nod(), xsh_extract_with_tag(), xsh_merge_ord_with_tag(), xsh_rec_list_add(), xsh_rec_list_duplicate(), xsh_rec_list_frame_invert(), and xsh_shift().
int xsh_rec_list_get_order | ( | xsh_rec_list * | list, | |
int | idx | |||
) |
Return the order absolute number from a xsh_rec_list structure.
list | Rectify structure pointer | |
idx | Index in the list |
Definition at line 799 of file xsh_data_rec.c.
References xsh_rec_list::list, xsh_rec::order, and XSH_ASSURE_NOT_NULL.
Referenced by analyse_extraction(), fill_rectified(), shift_with_localization(), xsh_combine_nod(), xsh_extract_with_tag(), and xsh_rec_list_duplicate().
int* xsh_rec_list_get_qual1 | ( | xsh_rec_list * | list, | |
int | idx | |||
) |
Return the qual1 buffer from a xsh_rec_list structure.
list | Rectify structure pointer | |
idx | Index in the list |
Definition at line 1036 of file xsh_data_rec.c.
References xsh_rec_list::list, xsh_rec::qual1, and XSH_ASSURE_NOT_NULL.
Referenced by concat_rec(), fill_rectified(), shift_with_localization(), xsh_extract_with_tag(), xsh_merge_ord_with_tag(), xsh_rec_list_add(), xsh_rec_list_duplicate(), and xsh_rec_list_rectify().
float* xsh_rec_list_get_slit | ( | xsh_rec_list * | list, | |
int | idx | |||
) |
Return the slit buffer from a xsh_rec_list structure.
list | Rectify structure pointer | |
idx | Index in the list |
Definition at line 837 of file xsh_data_rec.c.
References xsh_rec_list::list, xsh_rec::slit, and XSH_ASSURE_NOT_NULL.
Referenced by analyse_rectify(), concat_rec(), fill_rectified(), shift_with_localization(), xsh_combine_nod(), xsh_compute_slit_index(), xsh_extract_with_tag(), xsh_rec_list_duplicate(), and xsh_shift().
double xsh_rec_list_get_slit_max | ( | xsh_rec_list * | list | ) |
Return the slit max from a xsh_rec_list structure.
list | Rectify structure pointer |
Definition at line 876 of file xsh_data_rec.c.
References xsh_rec_list::slit_max, and XSH_ASSURE_NOT_NULL.
double xsh_rec_list_get_slit_min | ( | xsh_rec_list * | list | ) |
Return the slit min from a xsh_rec_list structure.
list | Rectify structure pointer |
Definition at line 856 of file xsh_data_rec.c.
References xsh_rec_list::slit_min, and XSH_ASSURE_NOT_NULL.
xsh_rec_list* xsh_rec_list_load | ( | cpl_frame * | frame, | |
xsh_instrument * | instrument | |||
) |
load an rec list from a frame
frame | the table wich contains polynomials coefficients of the orders | |
instrument | instrument in use |
Definition at line 379 of file xsh_data_rec.c.
References check, xsh_rec::data1, xsh_rec::errs1, xsh_rec_list::header, xsh_rec_list::instrument, xsh_rec::lambda, xsh_rec_list::list, xsh_rec::nlambda, xsh_rec::nslit, xsh_rec::order, xsh_rec::qual1, xsh_rec_list::size, size, xsh_rec::slit, XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, XSH_CALLOC, xsh_free_propertylist(), xsh_get_table_value(), xsh_msg_dbg_low, xsh_msg_dbg_medium, XSH_NEW_PROPERTYLIST, xsh_rec_list_set_data_size(), XSH_REC_TABLE_COLNAME_ERRS1, XSH_REC_TABLE_COLNAME_FLUX1, XSH_REC_TABLE_COLNAME_LAMBDA, XSH_REC_TABLE_COLNAME_NLAMBDA, XSH_REC_TABLE_COLNAME_NSLIT, XSH_REC_TABLE_COLNAME_ORDER, XSH_REC_TABLE_COLNAME_QUAL1, XSH_REC_TABLE_COLNAME_SLIT, xsh_table_get_array_double(), and xsh_table_get_array_float().
Referenced by analyse_extraction(), analyse_rectify(), concat_rec(), create_zero_rectify(), shift_with_localization(), xsh_combine_nod(), xsh_compute_slice_dist(), xsh_extract_with_tag(), xsh_merge_ord_with_tag(), xsh_rec_list_frame_invert(), and xsh_shift().
xsh_rec_list* xsh_rec_list_load_eso | ( | cpl_frame * | frame, | |
xsh_instrument * | instrument | |||
) |
Definition at line 495 of file xsh_data_rec.c.
References check, xsh_rec::data1, xsh_rec::errs1, xsh_rec_list::header, xsh_rec_list::instrument, xsh_rec::lambda, xsh_rec_list::list, xsh_rec::nlambda, xsh_rec::nslit, xsh_rec::order, xsh_rec::qual1, xsh_rec_list::size, size, xsh_rec::slit, XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, XSH_CALLOC, xsh_free_image(), xsh_free_propertylist(), xsh_msg_dbg_low, xsh_msg_dbg_medium, XSH_NEW_PROPERTYLIST, xsh_pfits_get_cdelt1(), xsh_pfits_get_cdelt2(), xsh_pfits_get_crval1(), xsh_pfits_get_crval2(), xsh_pfits_get_extname(), xsh_pfits_get_naxis1(), xsh_pfits_get_naxis2(), XSH_PRE_DATA_TYPE, XSH_PRE_ERRS_TYPE, XSH_PRE_QUAL_TYPE, and xsh_rec_list_set_data_size().
Referenced by xsh_merge_ord_with_tag().
cpl_frame* xsh_rec_list_save | ( | xsh_rec_list * | list, | |
const char * | filename, | |||
const char * | tag, | |||
int | is_temp | |||
) |
Save a rec list in a frame.
list | The rec_list structure wich contains polynomials coefficients of the orders | |
filename | The name of the save file on disk | |
tag | The list pro catg | |
is_temp | CPl_TRUE if temporary file, CPL_FALSE otherwise |
Definition at line 1065 of file xsh_data_rec.c.
References check, xsh_rec::data1, xsh_rec::errs1, xsh_rec_list::header, xsh_rec::lambda, xsh_rec_list::list, mode, xsh_rec::nlambda, xsh_rec::nslit, xsh_rec::order, xsh_rec::qual1, xsh_rec_list::size, xsh_rec::slit, xsh_add_temporary_file(), XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, xsh_frame_product(), xsh_free_array(), XSH_REC_TABLE_COLNAME_ERRS1, XSH_REC_TABLE_COLNAME_FLUX1, XSH_REC_TABLE_COLNAME_LAMBDA, XSH_REC_TABLE_COLNAME_NLAMBDA, XSH_REC_TABLE_COLNAME_NSLIT, XSH_REC_TABLE_COLNAME_ORDER, XSH_REC_TABLE_COLNAME_QUAL1, XSH_REC_TABLE_COLNAME_SLIT, and XSH_TABLE_FREE.
Referenced by concat_rec(), create_rectify_nod_list(), create_zero_rectify(), shift_with_localization(), xsh_combine_nod(), xsh_extract_with_tag(), xsh_opt_extract_orders(), xsh_rec_list_frame_invert(), xsh_rectify_orders(), xsh_shift(), and xsh_subtract_sky_single().
cpl_frame* xsh_rec_list_save2 | ( | xsh_rec_list * | list, | |
const char * | filename, | |||
const char * | tag | |||
) |
save an rec list to a frame
list | the rec_list structure wich contains polynomials coefficients of the orders | |
filename | the name of the save file on disk | |
tag | rec list pro catg |
Definition at line 1406 of file xsh_data_rec.c.
References check, xsh_rec::data1, xsh_rec::errs1, xsh_rec_list::header, xsh_rec::lambda, xsh_rec_list::list, mode, xsh_rec::nlambda, xsh_rec::nslit, xsh_rec::order, xsh_rec::qual1, xsh_rec_list::size, xsh_rec::slit, xsh_rec_list::slit_max, xsh_rec_list::slit_min, XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, xsh_frame_product(), xsh_free_array(), xsh_free_image(), xsh_free_propertylist(), xsh_msg_dbg_high, xsh_pfits_set_cdelt1(), xsh_pfits_set_cdelt2(), xsh_pfits_set_crpix1(), xsh_pfits_set_crpix2(), xsh_pfits_set_crval1(), xsh_pfits_set_crval2(), xsh_pfits_set_extname(), xsh_pfits_set_extract_slit_max(), xsh_pfits_set_extract_slit_min(), XSH_PRE_QUAL_BPP, and XSH_TABLE_FREE.
Referenced by shift_with_localization(), xsh_combine_nod(), xsh_extract_with_tag(), xsh_rectify_orders(), xsh_shift(), and xsh_subtract_sky_single().
cpl_frame* xsh_rec_list_save_table | ( | xsh_rec_list * | list, | |
const char * | filename, | |||
const char * | tag, | |||
int | is_temp | |||
) |
Save a rec list in a frame.
list | The rec_list structure wich contains polynomials coefficients of the orders | |
filename | The name of the save file on disk | |
tag | The pro catg of the save file on disk | |
is_temp | CPl_TRUE if temporary file, CPL_FALSE otherwise |
Definition at line 1283 of file xsh_data_rec.c.
References check, xsh_rec_list::header, xsh_rec::lambda, xsh_rec_list::list, mode, xsh_rec::nlambda, xsh_rec::nslit, xsh_rec::order, xsh_rec_list::size, xsh_rec::slit, xsh_add_temporary_file(), XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, xsh_frame_product(), xsh_free_array(), XSH_REC_TABLE_COLNAME_LAMBDA, XSH_REC_TABLE_COLNAME_NLAMBDA, XSH_REC_TABLE_COLNAME_NSLIT, XSH_REC_TABLE_COLNAME_ORDER, XSH_REC_TABLE_COLNAME_SLIT, and XSH_TABLE_FREE.
Referenced by xsh_rectify_orders().
void xsh_rec_list_set_data_size | ( | xsh_rec_list * | list, | |
int | idx, | |||
int | absorder, | |||
int | nlambda, | |||
int | ns | |||
) |
Allocate memory for the order idx of the rectify list.
[in] | list | The rectify list |
[in] | idx | The index of the order in the list |
[in] | absorder | The absorder of the order |
[in] | nlambda | The number of lambda values |
[in] | ns | The number of slit values |
Definition at line 191 of file xsh_data_rec.c.
References xsh_rec::data1, xsh_rec::errs1, xsh_rec::lambda, xsh_rec_list::list, xsh_rec::nlambda, xsh_rec::nslit, xsh_rec::order, xsh_rec::qual1, xsh_rec_list::size, size, xsh_rec::slit, XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, XSH_CALLOC, XSH_CMP_INT, and xsh_msg_dbg_high.
Referenced by concat_rec(), xsh_combine_nod(), xsh_extract_with_tag(), xsh_opt_extract_orders(), xsh_rec_list_duplicate(), xsh_rec_list_load(), xsh_rec_list_load_eso(), xsh_rectify_orders(), and xsh_wavemap_list_build_sky().
cpl_error_code xsh_rec_list_set_slit_max | ( | xsh_rec_list * | list, | |
const double | val | |||
) |
Set the slit max val in the xsh_rec_list structure.
list | Rectify structure pointer | |
val | slit value to set |
Definition at line 960 of file xsh_data_rec.c.
References xsh_rec_list::slit_max, and XSH_ASSURE_NOT_NULL.
cpl_error_code xsh_rec_list_set_slit_min | ( | xsh_rec_list * | list, | |
const double | val | |||
) |
Set the slit min val in the xsh_rec_list structure.
list | Rectify structure pointer | |
val | slit value to set |
Definition at line 940 of file xsh_data_rec.c.
References xsh_rec_list::slit_min, and XSH_ASSURE_NOT_NULL.
void xsh_rec_list_update_header | ( | xsh_rec_list * | rec_list, | |
xsh_pre * | pre, | |||
xsh_rectify_param * | rec_par, | |||
const char * | pro_catg | |||
) |
Update header of rectified list writing mandatory KW.
rec_list | The rectified list to update | |
pre | the pre image used to build rectified list | |
rec_par | The rectify parameters | |
pro_catg | The given pro catg |
Definition at line 1227 of file xsh_data_rec.c.
References check, xsh_pre::data_header, xsh_rec_list::header, xsh_rectify_param::rectif_bin_lambda, xsh_rectify_param::rectif_bin_space, xsh_rec_list::slit_max, xsh_rec_list::slit_min, XSH_ASSURE_NOT_NULL, 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_get_lambda_max(), and xsh_rec_list_get_lambda_min().
Referenced by xsh_rectify_orders().