X-shooter Pipeline Reference Manual 3.8.15
Functions
Compute Efficiency

Functions

int cpl_plugin_get_info (cpl_pluginlist *list)
 Build the list of available plugins, for this module.
 
static int xsh_util_efficiency_create (cpl_plugin *plugin)
 Setup the recipe options

 
static int xsh_util_efficiency_exec (cpl_plugin *plugin)
 Execute the plugin instance given by the interface.
 
static int xsh_util_efficiency_destroy (cpl_plugin *plugin)
 Destroy what has been created by the 'create' function.
 
static double xsh_table_get_interpolated (cpl_table *tbl, double wav, const char *colx, const char *coly)
 
static int xsh_util_efficiency (cpl_parameterlist *parlist, cpl_frameset *frames)
 Get the command line options and execute the data reduction.
 

Detailed Description

Function Documentation

◆ cpl_plugin_get_info()

int cpl_plugin_get_info ( cpl_pluginlist *  list)

Build the list of available plugins, for this module.

Parameters
listthe plugin list
Returns
0 if everything is ok

This function is exported.

Definition at line 110 of file xsh_util_efficiency.c.

References RECIPE_AUTHOR, RECIPE_CONTACT, RECIPE_ID, xsh_get_license(), xsh_util_efficiency_create(), xsh_util_efficiency_description, xsh_util_efficiency_description_short, xsh_util_efficiency_destroy(), and xsh_util_efficiency_exec().

◆ xsh_table_get_interpolated()

static double xsh_table_get_interpolated ( cpl_table *  tbl,
double  wav,
const char *  colx,
const char *  coly 
)
static

Definition at line 241 of file xsh_util_efficiency.c.

References y.

Referenced by xsh_util_efficiency().

◆ xsh_util_efficiency()

static int xsh_util_efficiency ( cpl_parameterlist *  parlist,
cpl_frameset *  frames 
)
static

Get the command line options and execute the data reduction.

Parameters
parlistthe parameters list
framesthe frames list
Returns
0 if everything is ok

Definition at line 295 of file xsh_util_efficiency.c.

References check, exptime, instrument, rec_profile, TEL_AREA, x, XSH_ATMOS_EXT_LIST_COLNAME_K, XSH_EFFICIENCY, xsh_free_image(), xsh_free_propertylist(), xsh_free_table(), xsh_free_vector(), xsh_msg, xsh_pfits_get_cdelt1(), xsh_pfits_get_crpix1(), xsh_pfits_get_crval1(), xsh_pfits_get_exptime(), xsh_pfits_get_naxis1(), and xsh_table_get_interpolated().

Referenced by xsh_util_efficiency_exec().

◆ xsh_util_efficiency_create()

static int xsh_util_efficiency_create ( cpl_plugin *  plugin)
static

Setup the recipe options

Parameters
pluginthe plugin
Returns
0 if everything is ok

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

Definition at line 144 of file xsh_util_efficiency.c.

References check, RECIPE_ID, xsh_init(), xsh_parameters_decode_bp(), and xsh_parameters_generic().

Referenced by cpl_plugin_get_info().

◆ xsh_util_efficiency_destroy()

static int xsh_util_efficiency_destroy ( cpl_plugin *  plugin)
static

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

Parameters
pluginthe plugin
Returns
0 if everything is ok

Definition at line 227 of file xsh_util_efficiency.c.

Referenced by cpl_plugin_get_info().

◆ xsh_util_efficiency_exec()

static int xsh_util_efficiency_exec ( cpl_plugin *  plugin)
static

Execute the plugin instance given by the interface.

Parameters
pluginthe plugin
Returns
0 if everything is ok

Definition at line 196 of file xsh_util_efficiency.c.

References xsh_util_efficiency().

Referenced by cpl_plugin_get_info().