60#define MODULE_ID "XSH_SLITMAP"
67 {
"debug", required_argument, 0,
DEBUG_OPT},
75 puts (
"Computes the slilet sizes with Order Table and SLIT MAP");
76 puts(
"Usage : ./test_xsh_slitmap <sof>");
79 puts(
" --debug=<n> : Level of debug LOW | MEDIUM | HIGH [MEDIUM]" );
80 puts(
" --help : What you see" ) ;
82 puts(
"The input files argument MUST be in this order:" ) ;
83 puts(
" 1. SOF [IFU_MAP|SLIT_MAP]");
94 while( (opt = getopt_long( argc, argv,
"debug:help",
98 if ( strcmp( optarg,
"LOW")==0){
101 else if ( strcmp( optarg,
"HIGH")==0){
127 const char *sof_name = NULL;
128 cpl_frameset *set = NULL;
129 cpl_frame * slitmap_frame = NULL ;
130 double sd, su, sld, slu;
134 cpl_msg_set_level( CPL_MSG_DEBUG);
139 if ( (argc-optind) >= 1 ) {
140 sof_name = argv[optind];
155 cpl_frame_get_filename( slitmap_frame));
160 if (cpl_error_get_code() != CPL_ERROR_NONE) {
int main()
Unit test of xsh_bspline_interpol.
static xsh_instrument * instrument
static void HandleOptions(int argc, char **argv)
static struct option LongOptions[]
cpl_frameset * sof_to_frameset(const char *sof_name)
#define xsh_error_dump(level)
void xsh_instrument_free(xsh_instrument **instrument)
free an instrument structure
#define xsh_msg(...)
Print a message on info level.
void xsh_get_slit_edges(cpl_frame *slitmap_frame, double *sdown, double *sup, double *sldown, double *slup, xsh_instrument *instrument)
Trace slit edges in a master flat.
void xsh_free_frameset(cpl_frameset **f)
Deallocate a frame set and set the pointer to NULL.
int xsh_debug_level_set(int level)
set debug level
#define TESTS_INIT(DRL_ID)
cpl_frame * xsh_find_slitmap(cpl_frameset *frames, xsh_instrument *instr)
Find a slit map.
xsh_instrument * xsh_dfs_set_groups(cpl_frameset *set)
Set the group as RAW or CALIB in a frameset and return the instrument detected.