#include <cpl.h>
Go to the source code of this file.
Data Structures | |
struct | xsh_star_flux_list |
Defines | |
#define | XSH_DATA_STAR_FLUX_H |
#define | XSH_STAR_FLUX_LIST_COLNAME_WAVELENGTH "LAMBDA" |
#define | XSH_STAR_FLUX_LIST_COLNAME_FLUX "FLUX" |
Functions | |
cpl_error_code | xsh_star_flux_list_filter_median (xsh_star_flux_list *result, int hsize) |
xsh_star_flux_list * | xsh_star_flux_list_load (cpl_frame *star_frame) |
void | xsh_star_flux_list_free (xsh_star_flux_list **list) |
xsh_star_flux_list * | xsh_star_flux_list_create (int size) |
cpl_frame * | xsh_star_flux_list_save (xsh_star_flux_list *list, const char *filename, const char *tag) |
cpl_frame * | xsh_star_flux_list_save_order (xsh_star_flux_list *list, const char *filename, const char *tag, const int order) |
double * | xsh_star_flux_list_get_lambda (xsh_star_flux_list *list) |
double * | xsh_star_flux_list_get_flux (xsh_star_flux_list *list) |
cpl_error_code | xsh_star_flux_list_dump_ascii (xsh_star_flux_list *list, const char *filename) |
#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 86 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_response_calculate(), and xsh_star_flux_list_load().
cpl_error_code xsh_star_flux_list_dump_ascii | ( | xsh_star_flux_list * | list, | |
const char * | filename | |||
) |
Definition at line 170 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.
cpl_error_code xsh_star_flux_list_filter_median | ( | xsh_star_flux_list * | result, | |
int | hsize | |||
) |
Definition at line 64 of file xsh_data_star_flux.c.
References xsh_star_flux_list::flux, xsh_star_flux_list::size, size, and xsh_free_vector().
Referenced by xsh_response_calculate().
void xsh_star_flux_list_free | ( | xsh_star_flux_list ** | list | ) |
Definition at line 154 of file xsh_data_star_flux.c.
References check, and xsh_free_propertylist().
Referenced by xsh_compute_response(), xsh_compute_response_ord(), and xsh_star_flux_list_load().
double* xsh_star_flux_list_get_flux | ( | xsh_star_flux_list * | list | ) |
Definition at line 335 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 327 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 101 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_STAR_FLUX_UVB_WAV_MIN, XSH_TABLE_FREE, and XSH_TABLE_LOAD.
Referenced by xsh_calibrate_flux(), xsh_compute_response(), and xsh_compute_response_ord().
cpl_frame* xsh_star_flux_list_save | ( | xsh_star_flux_list * | list, | |
const char * | filename, | |||
const char * | tag | |||
) |
Definition at line 200 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_add_temporary_file(), 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(), and xsh_response_calculate().
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 261 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_add_temporary_file(), 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().