64#define MODULE_ID "XSH_CREATE_SPECTRALFORMAT"
65#define SYNTAX "Create a spectral format file from a model config file\n"\
66 "use : ./the_xsh_create_spectralformat MODEL_CONFIG\n"\
67 "MODEL_CONFIG => the model config frame\n"
81int main(
int argc,
char **argv)
87 char* model_config_name = NULL;
88 cpl_frame* model_config_frame = NULL;
89 cpl_frame* spec_form_frame = NULL;
93 cpl_msg_set_level(CPL_MSG_DEBUG);
98 model_config_name = argv[1];
112 model_config_frame = cpl_frame_new();
113 cpl_frame_set_filename( model_config_frame, model_config_name) ;
114 cpl_frame_set_level( model_config_frame, CPL_FRAME_LEVEL_TEMPORARY);
115 cpl_frame_set_group( model_config_frame, CPL_FRAME_GROUP_RAW ) ;
116 cpl_frame_set_tag( model_config_frame,
"MODEL_CONFIG_TAB_VIS");
122 if (cpl_error_get_code() != CPL_ERROR_NONE) {
int main()
Unit test of xsh_bspline_interpol.
static xsh_instrument * instrument
#define xsh_error_dump(level)
#define XSH_ASSURE_NOT_NULL(pointer)
void xsh_instrument_set_mode(xsh_instrument *i, XSH_MODE mode)
Set a mode on instrument structure.
void xsh_instrument_set_arm(xsh_instrument *i, XSH_ARM arm)
Set an arm on instrument structure.
xsh_instrument * xsh_instrument_new(void)
create new instrument structure
cpl_error_code xsh_model_config_load_best(cpl_frame *config_frame, xsh_xs_3 *p_xs_3)
Load the config model table and fill the struct.
cpl_frame * xsh_model_spectralformat_create(xsh_xs_3 *p_xs_3, const char *tab_filename)
creates the model spectral format table
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)