xsh_predict
[Xshooter Recipes]

Defines

#define RECIPE_ID   "xsh_predict"
#define RECIPE_AUTHOR   "P.Goldoni, L.Guglielmi, R. Haigron, F. Royer"
#define RECIPE_CONTACT   "amodigli@eso.org"

Functions

static int xsh_predict_create (cpl_plugin *plugin)
 Setup the recipe options.
static int xsh_predict_exec (cpl_plugin *plugin)
 Execute the plugin instance given by the interface.
static int xsh_predict_destroy (cpl_plugin *plugin)
 Destroy what has been created by the 'create' function.
static void xsh_predict (cpl_parameterlist *parameters, cpl_frameset *frameset)
 Interpret the command line options and execute the data processing.
int cpl_plugin_get_info (cpl_pluginlist *list)
 Build the list of available plugins, for this module.
static cpl_error_code xsh_params_set_defaults (cpl_parameterlist *pars, xsh_instrument *inst, xsh_detect_arclines_param *detect_arclines_p)

Variables

static char xsh_predict_description_short []
static char xsh_predict_description []

Detailed Description

This recipe is used to obtain a first guess dispersion solution and order table. It calculates the geometry of the spectral format from a physical model and compares the predicted line positions to the ones on the calibration frame See man-page for details.


Define Documentation

#define RECIPE_AUTHOR   "P.Goldoni, L.Guglielmi, R. Haigron, F. Royer"

Definition at line 81 of file xsh_predict.c.

#define RECIPE_CONTACT   "amodigli@eso.org"

Definition at line 82 of file xsh_predict.c.

#define RECIPE_ID   "xsh_predict"

Definition at line 80 of file xsh_predict.c.


Function Documentation

int cpl_plugin_get_info ( cpl_pluginlist *  list  ) 

Build the list of available plugins, for this module.

Parameters:
list the plugin list
Returns:
0 if everything is ok, -1 otherwise

Create the recipe instance and make it available to the application using the interface. This function is exported.

Definition at line 151 of file xsh_predict.c.

References RECIPE_AUTHOR, RECIPE_CONTACT, RECIPE_ID, xsh_get_license(), xsh_predict_create(), xsh_predict_description, xsh_predict_description_short, xsh_predict_destroy(), and xsh_predict_exec().

static cpl_error_code xsh_params_set_defaults ( cpl_parameterlist *  pars,
xsh_instrument inst,
xsh_detect_arclines_param detect_arclines_p 
) [static]
static void xsh_predict ( cpl_parameterlist *  parameters,
cpl_frameset *  frameset 
) [static]

Interpret the command line options and execute the data processing.

Parameters:
parameters the parameters list
frameset the frames list

In case of failure the cpl_error_code is set.

Definition at line 397 of file xsh_predict.c.

References check, exptime, instrument, RECIPE_ID, xsh_add_product_image(), xsh_add_product_table(), XSH_ARC_LINE_LIST_INTMON, XSH_ARM_NIR, XSH_ASSURE_NOT_ILLEGAL_MSG, xsh_begin(), xsh_check_input_is_unbinned(), xsh_check_load_master_bpmap(), xsh_create_order_table(), xsh_detect_arclines(), xsh_detect_arclines_dan(), XSH_DETECT_ARCLINES_TYPE_MODEL, XSH_DETECT_ARCLINES_TYPE_POLY, xsh_dfs_split_nir(), xsh_end(), xsh_error_reset, xsh_find_arc_line_list(), xsh_find_frame_with_tag(), XSH_FMTCHK, xsh_frame_table_resid_merge(), XSH_FREE, xsh_free_frame(), xsh_free_frameset(), xsh_free_propertylist(), xsh_instrument_arm_tostring(), xsh_instrument_free(), xsh_instrument_get_arm(), xsh_instrument_get_config(), xsh_instrument_set_mode(), xsh_instrument_update_from_spectralformat(), XSH_MASTER_BIAS, XSH_MASTER_DARK, XSH_MOD_CFG_OPT_REC, XSH_MOD_CFG_TAB, xsh_mode_is_physmod(), XSH_MODE_SLIT, xsh_model_pipe_anneal(), xsh_msg, xsh_msg_warning, XSH_ORDER_TAB_RECOV, xsh_parameters_clipping_detect_arclines_get(), xsh_parameters_detect_arclines_get(), xsh_parameters_get_int(), xsh_params_set_defaults(), xsh_pfits_get_exptime(), xsh_predict_description_short, xsh_prepare(), xsh_recipe_params_check(), XSH_SOLUTION_RELATIVE, XSH_SPECTRAL_FORMAT, xsh_stringcat_any(), xsh_subtract_bias(), xsh_subtract_dark(), xsh_subtract_nir_on_off(), xsh_table_merge_clean_and_resid_tabs(), XSH_THEO_TAB_SING, XSH_WAVE_TAB_GUESS, xsh_wavecal_qclog_intmon(), and xsh_wavetab_qc().

Referenced by xsh_predict_exec().

static int xsh_predict_create ( cpl_plugin *  plugin  )  [static]

Setup the recipe options.

Parameters:
plugin the plugin
Returns:
0 if everything is ok

Create the recipe instance and make it available to the application using the interface.

Definition at line 193 of file xsh_predict.c.

References assure, check, RECIPE_ID, xsh_error_dump, XSH_GAUSSIAN_METHOD, xsh_init(), xsh_parameters_clipping_detect_arclines_create(), xsh_parameters_detect_arclines_create(), xsh_parameters_generic(), xsh_parameters_new_double(), xsh_parameters_new_int(), and xsh_parameters_pre_overscan().

Referenced by cpl_plugin_get_info().

static int xsh_predict_destroy ( cpl_plugin *  plugin  )  [static]

Destroy what has been created by the 'create' function.

Parameters:
plugin the plugin
Returns:
0 if everything is ok

Definition at line 333 of file xsh_predict.c.

References assure, and xsh_free_parameterlist().

Referenced by cpl_plugin_get_info().

static int xsh_predict_exec ( cpl_plugin *  plugin  )  [static]

Execute the plugin instance given by the interface.

Parameters:
plugin the plugin
Returns:
0 if everything is ok

Definition at line 300 of file xsh_predict.c.

References assure, xsh_error_dump, and xsh_predict().

Referenced by cpl_plugin_get_info().


Variable Documentation

char xsh_predict_description[] [static]

Definition at line 105 of file xsh_predict.c.

Referenced by cpl_plugin_get_info().

Initial value:
"Compute a first guess dispersion solution and order table"

Definition at line 102 of file xsh_predict.c.

Referenced by cpl_plugin_get_info(), and xsh_predict().


Generated on 22 Mar 2012 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1