|
X-shooter Pipeline Reference Manual 3.8.15
|
#include <cpl.h>Go to the source code of this file.
Data Structures | |
| struct | xsh_star_flux_list |
Macros | |
| #define | XSH_STAR_FLUX_LIST_COLNAME_WAVELENGTH "LAMBDA" |
| #define | XSH_STAR_FLUX_LIST_COLNAME_FLUX "FLUX" |
| #define XSH_STAR_FLUX_LIST_COLNAME_FLUX "FLUX" |
Definition at line 33 of file xsh_data_star_flux.h.
| #define XSH_STAR_FLUX_LIST_COLNAME_WAVELENGTH "LAMBDA" |
Definition at line 32 of file xsh_data_star_flux.h.
| xsh_star_flux_list * xsh_star_flux_list_create | ( | int | size | ) |
Definition at line 123 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, xsh_star_flux_list::header, xsh_star_flux_list::lambda, xsh_star_flux_list::size, size, and XSH_CALLOC.
Referenced by xsh_bspline_fit_smooth(), xsh_response_calculate(), xsh_spectrum_correct(), xsh_star_flux_list_duplicate(), xsh_star_flux_list_load(), and xsh_star_flux_list_load_spectrum().
| cpl_error_code xsh_star_flux_list_divide | ( | xsh_star_flux_list * | result, |
| xsh_star_flux_list * | factor | ||
| ) |
Definition at line 551 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, xsh_star_flux_list::size, size, XSH_ASSURE_NOT_ILLEGAL_MSG, and XSH_ASSURE_NOT_NULL.
Referenced by xsh_compute_response2().
| cpl_error_code xsh_star_flux_list_dump_ascii | ( | xsh_star_flux_list * | list, |
| const char * | filename | ||
| ) |
Definition at line 304 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, xsh_star_flux_list::lambda, xsh_star_flux_list::size, size, and XSH_ASSURE_NOT_NULL_MSG.
| xsh_star_flux_list * xsh_star_flux_list_duplicate | ( | xsh_star_flux_list * | list | ) |
Definition at line 478 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, xsh_star_flux_list::lambda, xsh_star_flux_list::size, size, XSH_ASSURE_NOT_NULL, and xsh_star_flux_list_create().
Referenced by xsh_bspline_fit_interpol(), and xsh_compute_response2().
| void xsh_star_flux_list_extrapolate_wave_end | ( | xsh_star_flux_list * | list, |
| const double | wmax | ||
| ) |
Definition at line 498 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, xsh_star_flux_list::lambda, m, xsh_star_flux_list::size, size, x, and XSH_ASSURE_NOT_NULL.
Referenced by xsh_compute_response2().
| cpl_error_code xsh_star_flux_list_filter_lowpass | ( | xsh_star_flux_list * | result, |
| cpl_lowpass | filter_type, | ||
| int | hsize | ||
| ) |
Definition at line 95 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, xsh_star_flux_list::size, XSH_ASSURE_NOT_ILLEGAL_MSG, XSH_ASSURE_NOT_NULL_MSG, and xsh_free_vector().
| cpl_error_code xsh_star_flux_list_filter_median | ( | xsh_star_flux_list * | result, |
| int | hsize | ||
| ) |
Definition at line 68 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, xsh_star_flux_list::size, XSH_ASSURE_NOT_ILLEGAL_MSG, XSH_ASSURE_NOT_NULL_MSG, and xsh_free_vector().
Referenced by xsh_compute_response2(), and xsh_response_calculate().
| void xsh_star_flux_list_free | ( | xsh_star_flux_list ** | list | ) |
Definition at line 288 of file xsh_data_star_flux.c.
References xsh_free_propertylist().
Referenced by xsh_compute_response(), xsh_compute_response2(), xsh_compute_response_ord(), xsh_star_flux_list_load(), and xsh_star_flux_list_load_spectrum().
| double * xsh_star_flux_list_get_flux | ( | xsh_star_flux_list * | list | ) |
Definition at line 469 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, and XSH_ASSURE_NOT_NULL.
Referenced by do_calib_spectrum(), and xsh_bspline_fit_interpol().
| double * xsh_star_flux_list_get_lambda | ( | xsh_star_flux_list * | list | ) |
Definition at line 461 of file xsh_data_star_flux.c.
References xsh_star_flux_list::lambda, and XSH_ASSURE_NOT_NULL.
Referenced by do_calib_spectrum(), and xsh_bspline_fit_interpol().
| xsh_star_flux_list * xsh_star_flux_list_load | ( | cpl_frame * | star_frame | ) |
Definition at line 138 of file xsh_data_star_flux.c.
References check, xsh_star_flux_list::flux, xsh_star_flux_list::header, xsh_star_flux_list::lambda, XSH_ASSURE_NOT_NULL, xsh_error_msg, xsh_get_table_value(), XSH_STAR_FLUX_LIST_COLNAME_FLUX, XSH_STAR_FLUX_LIST_COLNAME_WAVELENGTH, xsh_star_flux_list_create(), xsh_star_flux_list_free(), XSH_TABLE_FREE, and XSH_TABLE_LOAD.
Referenced by xsh_calibrate_flux(), xsh_compute_response(), xsh_compute_response2(), and xsh_compute_response_ord().
| xsh_star_flux_list * xsh_star_flux_list_load_spectrum | ( | cpl_frame * | star_frame | ) |
Definition at line 237 of file xsh_data_star_flux.c.
References check, xsh_spectrum::flux, xsh_star_flux_list::flux, xsh_spectrum::flux_header, xsh_star_flux_list::header, xsh_star_flux_list::lambda, XSH_ASSURE_NOT_NULL, xsh_error_msg, xsh_pfits_get_cdelt1(), xsh_pfits_get_crval1(), xsh_pfits_get_naxis1(), xsh_spectrum_free(), xsh_spectrum_load(), xsh_star_flux_list_create(), and xsh_star_flux_list_free().
Referenced by xsh_compute_response2().
| cpl_frame * xsh_star_flux_list_save | ( | xsh_star_flux_list * | list, |
| const char * | filename, | ||
| const char * | tag | ||
| ) |
Definition at line 334 of file xsh_data_star_flux.c.
References check, xsh_star_flux_list::flux, xsh_star_flux_list::header, xsh_star_flux_list::lambda, xsh_star_flux_list::size, size, XSH_ASSURE_NOT_NULL, xsh_frame_product(), xsh_msg_dbg_low, XSH_STAR_FLUX_LIST_COLNAME_FLUX, XSH_STAR_FLUX_LIST_COLNAME_WAVELENGTH, and XSH_TABLE_FREE.
Referenced by xsh_compute_response(), xsh_compute_response2(), xsh_response_calculate(), and xsh_spectrum_correct().
| cpl_frame * xsh_star_flux_list_save_order | ( | xsh_star_flux_list * | list, |
| const char * | filename, | ||
| const char * | tag, | ||
| const int | order | ||
| ) |
Definition at line 395 of file xsh_data_star_flux.c.
References check, xsh_star_flux_list::flux, xsh_star_flux_list::header, xsh_star_flux_list::lambda, order, xsh_star_flux_list::size, size, XSH_ASSURE_NOT_NULL, xsh_frame_product(), xsh_msg_dbg_low, XSH_STAR_FLUX_LIST_COLNAME_FLUX, XSH_STAR_FLUX_LIST_COLNAME_WAVELENGTH, and XSH_TABLE_FREE.
Referenced by xsh_compute_response_ord().
| cpl_error_code xsh_star_flux_list_to_frame | ( | xsh_star_flux_list * | list, |
| cpl_frame * | frame | ||
| ) |
Definition at line 196 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, xsh_star_flux_list::lambda, s, xsh_star_flux_list::size, size, XSH_ASSURE_NOT_NULL, xsh_free_frame(), xsh_spectrum_free(), xsh_spectrum_get_flux(), xsh_spectrum_load(), and xsh_spectrum_save().
Referenced by xsh_compute_response2().