59#define MODULE_ID "XSH_TELLURIC_COR"
69int main(
int argc,
char** argv)
72 char *name_model = NULL;
73 char *name_spectrum = NULL;
75 cpl_frame* frame_s=NULL;
76 cpl_frame* frame_m=NULL;
80 cpl_msg_set_level( CPL_MSG_DEBUG);
90 cpl_table* tab_res=NULL;
93 name_spectrum = argv[1];
103 frame_m=cpl_frame_new();
104 cpl_frame_set_filename(frame_m,name_model);
105 cpl_frame_set_type(frame_m,CPL_FRAME_TYPE_TABLE);
109 frame_s=cpl_frame_new();
111 cpl_frame_set_filename(frame_s,name_spectrum);
112 cpl_frame_set_type(frame_s,CPL_FRAME_TYPE_IMAGE);
123 if (cpl_error_get_code() != CPL_ERROR_NONE) {
int main()
Unit test of xsh_bspline_interpol.
static xsh_instrument * instrument
xsh_spectrum * xsh_spectrum_load(cpl_frame *s1d_frame)
Load a 1D spectrum structure.
void xsh_spectrum_free(xsh_spectrum **s)
free memory associated to an 1D spectrum
#define xsh_error_dump(level)
void xsh_instrument_set_arm(xsh_instrument *i, XSH_ARM arm)
Set an arm on instrument structure.
void xsh_instrument_free(xsh_instrument **instrument)
free an instrument structure
xsh_instrument * xsh_instrument_new(void)
create new instrument structure
int xsh_debug_level_set(int level)
set debug level
void xsh_free_table(cpl_table **t)
Deallocate a table and set the pointer to NULL.
#define TESTS_INIT(DRL_ID)