#include <cpl.h>
Go to the source code of this file.
#define XSH_DATA_STAR_FLUX_H |
Definition at line 27 of file xsh_data_star_flux.h.
#define XSH_STAR_FLUX_LIST_COLNAME_FLUX "FLUX" |
Definition at line 33 of file xsh_data_star_flux.h.
Referenced by xsh_star_flux_list_load(), xsh_star_flux_list_save(), and xsh_star_flux_list_save_order().
#define XSH_STAR_FLUX_LIST_COLNAME_WAVELENGTH "LAMBDA" |
Definition at line 32 of file xsh_data_star_flux.h.
Referenced by xsh_star_flux_list_load(), xsh_star_flux_list_save(), and xsh_star_flux_list_save_order().
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, and XSH_CALLOC.
Referenced by xsh_bspline_fit(), 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 549 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, size, xsh_star_flux_list::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 303 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 477 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_compute_response2().
void xsh_star_flux_list_extrapolate_wave_end | ( | xsh_star_flux_list * | list, | |
const double | wmax | |||
) |
Definition at line 496 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().
Referenced by xsh_compute_response2().
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 287 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 468 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, and XSH_ASSURE_NOT_NULL.
Referenced by do_calib_spectrum().
double* xsh_star_flux_list_get_lambda | ( | xsh_star_flux_list * | list | ) |
Definition at line 460 of file xsh_data_star_flux.c.
References xsh_star_flux_list::lambda, and XSH_ASSURE_NOT_NULL.
Referenced by do_calib_spectrum().
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 236 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 333 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 394 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_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, xsh_spectrum::lambda_max, xsh_spectrum::lambda_min, s, xsh_star_flux_list::size, xsh_spectrum::size, size, XSH_ASSURE_NOT_NULL, xsh_spectrum_get_flux(), xsh_spectrum_load(), and xsh_spectrum_save().
Referenced by xsh_compute_response2().