65#define MODULE_ID "XSH_DATA_ORDER_2D"
67#define SYNTAX "Invert an order 2D file\n"\
68 "use : ./test_xsh_data_order_2D FRAME\n"\
69 "FRAME => the order 2D frame\n"
82int main(
int argc,
char **argv)
87 char* rec_name = NULL;
88 cpl_frame* rec_frame = NULL;
89 cpl_frame *result = NULL;
94 cpl_msg_set_level(CPL_MSG_DEBUG);
107 rec_frame = cpl_frame_new();
109 cpl_frame_set_filename( rec_frame, rec_name) ;
110 cpl_frame_set_level( rec_frame, CPL_FRAME_LEVEL_TEMPORARY);
111 cpl_frame_set_group( rec_frame, CPL_FRAME_GROUP_RAW ) ;
124 if (cpl_error_get_code() != CPL_ERROR_NONE) {
int main()
Unit test of xsh_bspline_interpol.
static 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.
#define xsh_error_dump(level)
#define XSH_ASSURE_NOT_NULL(pointer)
void xsh_instrument_free(xsh_instrument **instrument)
free an instrument structure
xsh_instrument * xsh_instrument_new(void)
create new instrument structure
void xsh_free_frame(cpl_frame **f)
Deallocate a frame and set the pointer to NULL.
int xsh_debug_level_set(int level)
set debug level
#define TESTS_INIT(DRL_ID)