48 "Facilatates a first appro phys mod fit using interactively derived list of wavelengths and centroids.\n";
50"Compute optimum config given wavelengths and observed detected positions";
67 cpl_recipe * recipe = cpl_calloc(1,
sizeof *recipe ) ;
68 cpl_plugin * plugin = &recipe->interface ;
70 cpl_plugin_init(plugin,
73 CPL_PLUGIN_TYPE_RECIPE,
74 "xsh_model_first_anneal",
84 cpl_pluginlist_append(list, plugin) ;
100 cpl_recipe * recipe ;
101 cpl_parameter * p=NULL;
107 assure( plugin != NULL, CPL_ERROR_NULL_INPUT,
"Null plugin");
111 if (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE)
112 recipe = (cpl_recipe *)plugin ;
116 recipe->parameters = cpl_parameterlist_new() ;
118 p = cpl_parameter_new_enum(
"xsh.xsh_model_compute.arm",
121 "xsh.xsh_model_compute",
123 3,
"uvb",
"vis",
"nir");
125 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"arm");
126 cpl_parameterlist_append(recipe->parameters, p);
128 p = cpl_parameter_new_value(
"xsh.xsh_model_compute.niter",
129 CPL_TYPE_INT,
"Number of iterations ",
130 "xsh.xsh_model_compute", 100000);
132 cpl_parameter_set_alias(p,CPL_PARAMETER_MODE_CLI,
"niter");
133 cpl_parameterlist_append(recipe->parameters,p);
149 cpl_recipe * recipe ;
152 if (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE)
153 recipe = (cpl_recipe *)plugin ;
168 cpl_recipe * recipe ;
171 if (cpl_plugin_get_type(plugin) == CPL_PLUGIN_TYPE_RECIPE)
172 recipe = (cpl_recipe *)plugin ;
175 cpl_parameterlist_delete(recipe->parameters) ;
int cpl_plugin_get_info(cpl_pluginlist *list)
Build the list of available plugins, for this module.
#define assure(CONDITION, ERROR_CODE,...)
int xsh_model_first_anneal(cpl_parameterlist *parlist, cpl_frameset *frameset)
Interpret the command line options and execute the data processing.
static char xsh_model_first_anneal_description_short[]
static int xsh_model_first_anneal_exec(cpl_plugin *)
Execute the plugin instance given by the interface.
static char xsh_model_first_anneal_description[]
static int xsh_model_first_anneal_destroy(cpl_plugin *)
Destroy what has been created by the 'create' function.
static int xsh_model_first_anneal_create(cpl_plugin *)
Setup the recipe options
const char * xsh_get_license(void)
Get the pipeline copyright and license.
void xsh_init(void)
Reset library state.